Motion
@rc-component/motion
React lifecycle controlled motion library
Animation
react
react-component
react-motion
motion
antd
ant-design
@rc-component/motion
Animation
javascript
npm
Stars
327
Weekly
971k
Open issues
4
Bundle
~25 kB
Installation
npm install @rc-component/motionCode example
import { motion } from "@rc-component/motion";
export function Example() {
return (
<motion.div
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
>
<h2>Animated with Motion</h2>
</motion.div>
);
}Pros & cons
Pros
- Actively maintained by zombiej
- 971k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 4 open issues on GitHub