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.
Install motion
via your package manager:
npm install motion
import { animate } from "motion"
animate("#box", { x: 100 })
Read the full JavaScript docs.
import { motion } from "motion/react"
function Component() {
return <motion.div animate={{ x: 100 }} />
}
Read the full React docs.
- Want to contribute to Motion? Our contributing guide has you covered.
- Motion is MIT licensed.
Motion is sustainable thanks to the kind support of its sponsors.
Motion powers Framer animations, the web builder for creative pros. Design and ship your dream site. Zero code, maximum speed.