Motion
motion
An animation library for JavaScript and React.
Animation
javascript animation
react animation
react
three
3d
animation
gestures
drag
spring
popmotion
Stars
34k
Weekly
18M
Open issues
108
Bundle
~15 kB
Installation
npm install motionCode example
import { motion } from "motion/react";
export function Example() {
return (
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }}>
Hello
</motion.div>
);
}Pros & cons
Pros
- Actively maintained by Matt Perry
- 18M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 108 open issues on GitHub