🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

svelte-motion

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-motion

Svelte animation library based on the React library framer-motion.

0.12.2
latest
Source
npm
Version published
Weekly downloads
5.6K
12.48%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte Motion

An animation library based on framer-motion.

Visit Project Page

Installation

npm install --save-dev svelte-motion

Usage

Corresponding to a MotionDiv in framer-motion is this:

import { Motion } from 'svelte-motion'

<Motion let:motion><div use:motion/></Motion>

For svg elements like 'g', 'path' or 'circle', use:

<Motion let:motion isSVG><g use:motion/></Motion>

Keywords

svelte animation

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts