Guidelines and examples for UI motion and animation. Use when designing, implementing, or reviewing motion, easing, timing, reduced-motion behaviour, CSS transitions, keyframes, framer-motion, or spring animations.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Guidelines and examples for UI motion and animation. Use when designing, implementing, or reviewing motion, easing, timing, reduced-motion behaviour, CSS transitions, keyframes, framer-motion, or spring animations.
UI Animation
Core rules
Animate to clarify cause/effect or add deliberate delight.
Keep interactions fast (200-300ms; up to 1s only for illustrative motion).
Never animate keyboard interactions (arrow-key navigation, shortcut responses, tab/focus).
Prefer CSS; use WAAPI or JS only when needed.
Make animations interruptible and input-driven.
Honor prefers-reduced-motion (reduce or disable).
What to animate
For movement and spatial change, animate only transform and opacity.
For simple state feedback, color, background-color, and opacity transitions are acceptable.
Never animate layout properties; never use transition: all.
Avoid filter animation for core interactions; if unavoidable, keep blur <= 20px.
SVG: apply transforms on a <g> wrapper with transform-box: fill-box; transform-origin: center.
Disable transitions during theme switches.
Spatial and sequencing
Set transform-origin at the trigger point.
For dialogs/menus, start around scale(0.85-0.9); avoid scale(0).
Stagger reveals <= 50ms.
Easing defaults
Enter and transform-based hover: cubic-bezier(0.22, 1, 0.36, 1).