motion
by Matt Perry
27,430 stars
793,518 weekly
downloads
Installation
npm i motion
Quick Links
Details
- Version
- 12.4.7
- Category
- React
- Last Updated
- 25/02/2025
Motion
An open source motion library for JavaScript and React.
Motion is the only animation library with first-class APIs for both JavaScript and React.
Itβs the only animation library with a hybrid engine, combining the power of JavaScript animations with the performance of native browser APIs.
ποΈ Quick start
Install motion
via your package manager:
npm install motion
JavaScript
import { animate } from "motion"
animate("#box", { x: 100 })
Read the full JavaScript docs.
React
import { motion } from "motion/react"
function Component() {
return <motion.div animate={{ x: 100 }} />
}
Read the full React docs.
π Contribute
- Want to contribute to Motion? Our contributing guide has you covered.
π©π»ββοΈ License
- Motion 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.