[go: up one dir, main page]

@loofkid/svelte-motion
TypeScript icon, indicating that this package has built-in type declarations

0.11.6 • Public • Published

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>

Package Sidebar

Install

npm i @loofkid/svelte-motion

Weekly Downloads

1

Version

0.11.6

License

MIT

Unpacked Size

653 kB

Total Files

390

Last publish

Collaborators

  • loofkid