Motion
Easing presets, duration rules, native transition-discrete overlay motion, and automatic reduced-motion fallbacks.
Principles
- Motion explains cause and effect: what opened, what changed, and where it came from.
- Name the exact properties (
transition-colors,transition-[opacity,scale,translate]), nevertransition-all. - Menu items use a 75 ms highlight transition so keyboard and pointer sweeps never lag behind.
- Every animation and transition switches off automatically under
prefers-reduced-motion: reduce.
Easing presets
| Preset | Values | Use it for |
|---|---|---|
ease-snappy | cubic-bezier(0.22, 1, 0.36, 1) · 150–200ms | Hovers, popovers, dialogs, and sliding tab or toggle indicators. |
ease-spring | cubic-bezier(0.34, 1.56, 0.64, 1) · 200–280ms | Small confirmation marks that pop in: checkboxes, radio dots, copied ticks, and rotating chevrons. |
ease-smooth | cubic-bezier(0.65, 0, 0.35, 1) · 300–1400ms | Continuous loops and indeterminate progress bars. |