What problem does it solve?
Framer Motion animations can cause performance bottlenecks including large bundle sizes, unnecessary React re-renders, and janky frame rates. This skill provides 42 prioritized rules to optimize animation performance and ensure smooth 60fps experiences.
Core Features & Use Cases
- 42 Performance Rules: Organized into 9 categories by impact level (CRITICAL, HIGH, MEDIUM, LOW) covering bundle optimization, re-render prevention, animation properties, layout animations, scroll animations, gesture optimization, spring physics, SVG animations, and exit animations.
- Code Examples: Each rule includes incorrect and correct code patterns with detailed explanations.
- Use Cases: Writing new Framer Motion animations, reviewing existing animation code, refactoring animation-heavy React components, and reducing bundle size for production applications.
Quick Start
Use the framer-motion skill to review your React animation code and apply the bundle-lazy-motion and rerender-motion-value rules to improve performance.