Motion — Options
What animates, how fast, and what happens for reduced-motion users. Hover the samples — motion can only be judged live.
Live samples (hover them)
micro-interaction default
Hover-lift card ✓
shadow only, interactive cardslayout animates, too slow — violation
Show audit of the app before this rule
Audit — what we have today
- ✓ transition-colors dominant (48×) — correct micro-interaction default
- ✓ duration-200 dominant (10×) — inside the 160–240ms expert band
- ✓ Entrances/exits via shadcn animate-in/out (dialogs, toasts)
- ✗ transition-all ×9 — animates layout accidentally, perf cost
- ✗ duration-500 ×2 — beyond the 360ms ceiling
- ✗ prefers-reduced-motion: effectively unsupported (1 stray hit)
Option A — Minimal motion rules ✓ CHOSEN
Property-specific transitions, 3 durations (150/200/300), global reduced-motion guard.
- • Codifies the dominant practice; small sweep (11 fixes)
- • transition-all banned; layout never animates
- • One CSS block covers reduced-motion app-wide
Option B — Full motion token system
Material-style easing + duration tokens, choreography specs.
- • Maximum consistency for motion-heavy products
- • We have ~70 transitions total — token layer outweighs the surface
- • Right for animation-led brands, not a workflow tool
Option C — Strip motion
No transitions anywhere.
- • Zero maintenance, fastest possible feel
- • Loses state-change feedback (hover, dialog entrances)
- • Research supports subtle motion for perceived quality
Shared rules (all options)
- • Motion signals state change (hover, open/close, add/remove) — never decoration
- • Micro-interactions 150–200ms · entrances/exits 200–300ms · nothing above 360ms
- • Animate cheap properties (color, opacity, transform, shadow) — never width/height/padding
- • prefers-reduced-motion must collapse durations to near-zero
Show research sources
Decision: Option A
- 1. Practice was already right — transition-colors + 200ms dominated. Codify it, fix 11 strays.
- 2. The a11y gap was the real finding: prefers-reduced-motion was unsupported. One global CSS guard now collapses all durations for users who ask.
- 3. B rejected: ~70 transitions total — a Material-style token layer outweighs the surface. C rejected: subtle motion carries state feedback.
- Applied at adoption: transition-all ×9 → transition (safe set); duration-500 ×2 → 300; reduced-motion guard in globals.css.