React Motion
react-motion
A spring that solves your animation problems.
Animation
react
component
react-component
transitiongroup
spring
tween
motion
animation
transition
ui
Stars
22k
Weekly
643k
Open issues
192
Bundle
~25 kB
Installation
npm install react-motionCode example
import { motion } from "react-motion";
export function Example() {
return (
<motion.div
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
>
<h2>Animated with React Motion</h2>
</motion.div>
);
}Pros & cons
Pros
- Actively maintained by chenglou
- 643k weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 192 open issues on GitHub