0.11.7 • Published 8 months ago

@rakadv/svelte-motion v0.11.7

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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>