Socket
Socket
Sign inDemoInstall

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 animstion library baded on the React library framer-motion.


Version published
Weekly downloads
13K
increased by6.17%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte Motion

An animation library based on framer-motion.

Installation

npm install --save-dev svelte-motion

if you run into build issues with Rollup like 'process is undefined', you need to add rollup-plugin-inject-process-env or a similar plugin.

Usage

Corresponding to a motion.div 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>

FAQs

Package last updated on 04 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc