Layer 4: motion spec
Motion is one theme token: data-motion on html is none, subtle or expressive. Subtle is the starter default. prefers-reduced-motion beats every level.
The animated SVG
Inline SVG, no library, under 1 KB. The stroke draws on the loop token. At none, or when the phone asks for reduced motion, it shows the finished line.
Tokens per level
CSS custom properties from motion.css, shown without their two leading dashes.
| Token | None | Subtle (default) | Expressive | Used for |
|---|---|---|---|---|
| motion-fast | 0ms | 120ms | 160ms | hover, focus, press feedback |
| motion-standard | 0ms | 180ms | 280ms | a panel opens, a status appears |
| motion-slow | 0ms | 240ms | 420ms | the largest transition on the page |
| motion-distance | 0px | 4px | 12px | how far things travel on entry |
| motion-lift | 0px | -2px | -3px | button hover lift |
| motion-press | 1 | 0.98 | 0.96 | button press scale |
| motion-stagger | 0ms | 0ms | 50ms | delay between list items: none at subtle |
| motion-loop | 0ms | 2400ms | 1800ms | the one hero loop |
| motion-loop-state | paused | running | running | |
| ease-enter | same | cubic-bezier(0.2, 0, 0, 1) | same | |
| ease-exit | same | cubic-bezier(0.4, 0, 1, 1) | same | |
| ease-move | same | cubic-bezier(0.2, 0, 0, 1) | cubic-bezier(0.34, 1.4, 0.64, 1) |
Easing curves
ease-enter
cubic-bezier(0.2, 0, 0, 1)
Things arriving: hover, panels, the success panel.
ease-exit
cubic-bezier(0.4, 0, 1, 1)
Things leaving. Exits are faster than entries.
ease-move (expressive)
cubic-bezier(0.34, 1.4, 0.64, 1)
Small overshoot, expressive only, never on errors.
Every animation, with its reduced-motion rule
| Trigger | What moves | Tokens | Easing | Reduced motion |
|---|---|---|---|---|
| Button hover | background, lift | motion-fast, motion-lift | ease-enter | colour changes at once, no lift |
| Button press | scale | motion-fast, motion-press | ease-enter | no scale |
| Class option pick | border, background | motion-fast | ease-enter | instant |
| Loading spinner | rotate, 900 ms loop | fixed (status, not decoration) | linear | stops; the label “Reservando…” says it |
| Success check | rise and scale in | motion-standard, motion-distance | ease-move | appears in place |
| Hero pulse line | stroke draws | motion-loop | ease-move | shows the finished line |