animate
Installation
SKILL.md
Motion explains what changed. It is not decoration. Animate a few meaningful moments well rather than everything a little.
Method
- Find the moments. List what appears, disappears, moves, or responds to the user. Keep only the ones where motion helps someone follow the change. Load
references/what-to-animate.md. - Pick the tool. Plain CSS for hover, press, state toggles, and enter animations. Motion for React when a React element must animate out before it unmounts, when layout reorders or resizes, for shared elements, drag, or springs. Never add a library to animate a hover.
- Implement with the defaults below. Load
references/css.mdorreferences/motion-react.md, plusreferences/svg.mdfor icons, strokes, and loaders. - Check performance and reduced motion. Load
references/performance-and-accessibility.md. - Watch it. Trigger every animation in a real browser, at full speed and slowed down, with reduced motion on and off. Then run
references/review.mdand fix every FAIL.
Defaults
Durations, by how much of the screen changes: