svelte-motion
v0.12.2
Published
Svelte animation library based on the React library framer-motion.
Downloads
65,584
Maintainers
Readme
Svelte Motion
An animation library based on framer-motion.
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>