Foundations
Motion
Changes saved
300ms fade and 8px rise, ease-out.
Reduced motion shows the end state straight away
| Use | Recipe |
|---|---|
| Popover, menu, dialog open and close | 100ms, fade plus scale from 95%, nudged 8px in from the side it opens on |
| Moving between sections | 300ms, fade plus an 8px rise, ease-out |
| Moving between sub-pages | 200ms, fade plus a 4px rise |
| Selection indicator (tabs, segments) | One indicator slides, at 200ms on ease-out-strong. Never two bars crossfading |
| Switching tab panels | 200ms fade plus 8px from the direction of travel. No exit animation |
| Drawers and sheets | ease-drawer |
| Marketing hero | 1000ms fade, a 12px rise and an 8px blur clearing, staggered 100ms per line and held invisible until each line's turn |
| Loading | shimmer-box for placeholders, text-shimmer-muted for "thinking" text, a spinning ring in busy buttons |
Rules:
- Animate entrances, and skip exits wherever an exit would put two things on screen at once.
- Animate what actually changed. Re-animating a whole page because one detail in the URL changed looks like a reload.
- Respect
prefers-reduced-motioneverywhere, and only smooth-scroll when it isno-preference.
Tokens
--ease-out-strong, --ease-drawer, --duration-instant (100ms), --duration-fast (200ms), --duration-base (300ms), --duration-hero (1000ms), --rise-sm, --rise-md, --rise-lg.