motion

popular esm cjs
An animation library for JavaScript and React.
Keywords
javascript animationreact animationreactthree3danimationgesturesdragspringpopmotionframerwaapi
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 12.6.3
- 12.6.3-alpha.0
- 12.6.2
- 12.6.1
- 12.6.0
- 12.5.0
- 12.4.13
- 12.4.12
- 12.4.11
- 12.4.10
- 12.4.9
- 12.4.7
- 12.4.6
- 12.4.5
- 12.4.4
- 12.4.4-alpha.0
- 12.4.3
- 12.4.2
- 12.4.1
- 12.4.0
- 12.3.1
- 12.3.0
- 12.2.0
- 12.1.0
- 12.0.11
- 12.0.10
- 12.0.9
- 12.0.8
- 12.0.8-alpha.1
- 12.0.8-alpha.0
- 12.0.6
- 12.0.5
- 12.0.4
- 12.0.3
- 12.0.1
- 12.0.0
- 12.0.0-alpha.2
- 11.18.2
- 11.18.1
- 11.18.0
- 11.17.1
- 11.17.0
- 11.16.7
- 11.16.6
- 11.16.4
- 11.16.3
- 11.16.2
- 11.16.1
- 11.16.0
- 11.15.0
- 11.14.4
- 11.14.3
- 11.14.2
- 11.14.1
- 11.14.0
- 11.13.5
- 11.13.4
- 11.13.3
- 11.13.1
- 11.13.0
- 11.13.0-beta.0
- 11.12.0
- 11.11.17
- 11.11.16
- 11.11.15
- 11.11.14
- 11.11.13
- 11.11.12
- 10.18.0
- 10.17.1
- 10.17.0
- 10.16.4
- 10.16.3
- 10.16.2
- 10.16.1
- 10.15.5
- 10.15.3
- 10.15.2
- 10.15.1
- 10.15.0
- 10.14.3
- 10.14.2
- 10.14.1
- 10.14.0
- 10.13.3
- 10.13.2
- 10.13.1
- 10.13.0
- 10.12.0
- 10.11.2
- 10.11.1
- 10.11.0
- 10.10.2
- 10.10.1
- 10.10.0
- 10.9.0
- 10.8.3
- 10.8.2
- 10.8.1
- 10.8.0
- 10.8.0-beta.4
- 10.8.0-beta.2
- 10.7.2
- 10.7.1
- 10.7.0
- 10.6.2
- 10.6.1
- 10.6.0
- 10.6.0-rc.6
- 10.6.0-rc.5
- 10.6.0-rc.4
- 10.6.0-rc.3
- 10.6.0-rc.1
- 10.5.2
- 10.5.1
- 10.5.0
- 10.5.0-beta.1
- 10.5.0-beta.0
- 10.5.0-alpha.5
- 10.5.0-alpha.4
- 10.5.0-alpha.3
- 10.5.0-alpha.2
- 10.5.0-alpha.1
- 10.4.0
- 10.3.2
- 10.3.1
- 10.3.0
- 10.2.1
- 10.2.0
- 10.1.4
- 10.1.3
- 10.1.2
- 10.1.1
- 10.1.0
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 10.0.0-rc.6
- 10.0.0-rc.5
- 10.0.0-rc.4
- 10.0.0-rc.3
- 10.0.0-rc.2
- 10.0.0-rc.1
- 10.0.0-rc.0
- 6.0.1-alpha.35
- 6.0.1-alpha.34
- 6.0.1-alpha.33
- 6.0.1-alpha.32
- 6.0.1-alpha.31
- 6.0.1-alpha.30
- 6.0.1-alpha.29
- 6.0.1-alpha.28
- 6.0.1-alpha.27
- 6.0.1-alpha.26
- 6.0.1-alpha.25
- 6.0.1-alpha.24
- 6.0.1-alpha.23
- 6.0.1-alpha.21
- 6.0.1-alpha.20
- 6.0.1-alpha.19
- 6.0.1-alpha.18
- 6.0.1-alpha.17
- 6.0.1-alpha.16
- 6.0.1-alpha.15
- 6.0.1-alpha.14
- 6.0.1-alpha.13
- 6.0.1-alpha.12
- 6.0.1-alpha.11
- 6.0.1-alpha.10
- 6.0.1-alpha.9
- 6.0.1-alpha.8
- 6.0.1-alpha.7
- 6.0.1-alpha.6
- 6.0.1-alpha.5
- 6.0.1-alpha.4
- 6.0.1-alpha.3
- 6.0.1-alpha.2
- 6.0.1-alpha.1
- 6.0.0
- 5.0.0-beta9
- 5.0.0-beta7
- 5.0.0-beta6
- 5.0.0-beta4
- 5.0.0-beta3
- 5.0.0-beta26
- 5.0.0-beta25
- 5.0.0-beta24
- 5.0.0-beta23
- 5.0.0-beta22
- 5.0.0-beta21
- 5.0.0-beta20-3
- 5.0.0-beta2
- 5.0.0-beta18-2
- 5.0.0-beta18
- 5.0.0-beta17
- 5.0.0-beta16
- 5.0.0-beta15
- 5.0.0-beta14
- 5.0.0-beta13
- 5.0.0-beta11
- 5.0.0-beta10
- 5.0.0-beta1
- 5.0.0-alpha1
- 4.5.0
- 4.4.1
- 4.4.0
- 4.3.10
- 4.3.9
- 4.3.8
- 4.3.7
- 4.3.6
- 4.3.0
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 0.10.0-beta
- 0.9.24
- 0.9.23
- 0.9.22
- 0.9.21
- 0.9.20
- 0.9.19
- 0.9.18
- 0.9.17
- 0.9.16
- 0.9.15
- 0.9.14
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
<script type="module"> import motion from 'https://cdn.jsdelivr.net/npm/motion@12.6.3/+esm' </script>
Motion for React
Motion for React is an open source, production-ready library thatβs designed for all creative developers.
It's the only animation library with a hybrid engine, combining the power of JavaScript animations with the performance of native browser APIs.
It looks like this:
<motion.div animate={{ x: 0 }} />
It does all this:
- Springs
- Keyframes
- Layout animations
- Shared layout animations
- Gestures (drag/tap/hover)
- Scroll animations
- SVG paths
- Exit animations
- Server-side rendering
- Independent transforms
- Orchestrate animations across components
- CSS variables
...and a whole lot more.
Get started
π Quick start
Install motion
via your package manager:
npm install motion
Then import the motion
component:
import { motion } from "motion/react"
export function Component({ isVisible }) {
return <motion.div animate={{ opacity: isVisible ? 1 : 0 }} />
}
π Contribute
- Want to contribute to Motion? Our contributing guide has you covered.
π©π»ββοΈ License
- Motion for React is MIT licensed.
β¨ Sponsors
Motion is sustainable thanks to the kind support of its sponsors.
Partners
Framer
Motion powers Framer animations, the web builder for creative pros. Design and ship your dream site. Zero code, maximum speed.