JSPM

framer-motion

7.6.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7213612
  • Score
    100M100P100Q215558F
  • License MIT

A simple and powerful React animation library

Package Exports

  • framer-motion
  • framer-motion/package.json

Readme

Framer Motion Icon

Framer Motion

An open source motion library for React, made by Framer.


Chat on Discord


Framer Motion is an open source, production-ready library that’s designed for all creative developers.

It looks like this:

<motion.div animate={{ x: 0 }} />

It does all this:

  • Springs
  • Keyframes
  • Layout animations
  • Shared layout animations
  • Gestures (drag/tap/hover)
  • SVG paths
  • Exit animations
  • Server-side rendering
  • Orchestrate animations across components
  • CSS variables

...and a whole lot more.

Get started

πŸ‡ Quick start

Install framer-motion with via your package manager:

npm install framer-motion

Then import the motion component:

import { motion } from "framer-motion"

export const MyComponent = ({ isVisible }) => (
    <motion.div animate={{ opacity: isVisible ? 1 : 0 }} />
)

πŸ“š Docs

πŸ’Ž Contribute

πŸ‘©πŸ»β€βš–οΈ License

  • Framer Motion is MIT licensed.

✨ Framer