Rc Motion
rc-motion
React lifecycle controlled motion library
Animation
react
react-component
react-motion
motion
antd
ant-design
rc-motion
Animation
javascript
npm
Stars
179
Weekly
1.8M
Open issues
15
Bundle
~25 kB
Installation
npm install rc-motionCode example
import { motion } from "rc-motion";
export function Example() {
return (
<motion.div
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
>
<h2>Animated with Rc Motion</h2>
</motion.div>
);
}Pros & cons
Pros
- Actively maintained by afc163
- 1.8M 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
- 15 open issues on GitHub