Framer Motion
Production-ready motion library for React
Simple declarative syntax for complex animations and gestures.
ReactAnimationGesturesLayout
๐ฎ Playground
Use cases
- โขPage transitions
- โขMicro-interactions
- โขLayout animations
Good for
- โModern web apps
- โInteractive UIs
- โLanding pages
Not good for
- โBundle size sensitive projects
- โServer-side rendering heavy apps
Installation
$npm install framer-motion
Example
import { motion } from "framer-motion"
export default function Demo() {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.5 }}
>
Hello World
</motion.div>
)
}Comparison
"More intuitive API than React Spring, more features than CSS animations."
Trust Metrics
24.5K
GitHub Stars
5.8M
Weekly Downloads
Last Commit:last year
Used by
FramerStripeNetflix
