Motion
Motion confirms cause and effect — fast, purposeful and always interruptible. Nothing in the system animates for decoration.
Durations
Three steps cover the system. Click a lane to run it — or race all three, which is the easiest way to see the gap between 150ms and 300ms.
duration-150Colour, opacity and shadow feedback — button hovers, focus rings
duration-200Structural movement — accordion expand, menu open, toast enter
duration-300Large surfaces — sheets, dialogs, page-level panels
| Step | Duration | Utility | Use |
|---|---|---|---|
| Fast | 150ms | duration-150 | Colour, opacity and shadow feedback — button hovers, focus rings |
| Base | 200ms | duration-200 | Structural movement — accordion expand, menu open, toast enter |
| Slow | 300ms | duration-300 | Large surfaces — sheets, dialogs, page-level panels |
Easing
Ease-out for things entering or responding (start fast, settle gently); ease-in-out for things moving on screen. Never linear for UI.
Same distance, same duration — only the curve differs. Watch where each dot spends its time: ease-out sprints then settles; ease-in-out gathers speed and brakes.
ease-outDefault — things entering or responding start fast and settle gently
ease-in-outRepositioning — sheets sliding, elements trading places
| Easing | Use |
|---|---|
ease-out | Default — menus, accordions, toasts, hover feedback. |
ease-in-out | Repositioning — sheets sliding, elements trading places. |
In practice
Components ship with their motion built in — accordion and enter/exit animations come from the token layer and tw-animate-css.
/* Feedback: colour only, fast */
<Button className="transition-colors duration-150" />
/* Structure: the accordion's 200ms ease-out lives in tokens.css */
--animate-accordion-down: accordion-down 0.2s ease-out;
/* Overlays animate with tw-animate-css enter/exit utilities */
data-[state=open]:animate-in data-[state=closed]:animate-outBrand motion
A second tier above functional motion: signature moments where the brand mark itself animates — the triangle "peak" drawing itself, or the coral heartbeat tracing an ECG line. Reserved for loading, empty states, splash and success beats.
Spinner — the peak draws itself
Pulse — the heartbeat draws itself
Restraint rules:
- One signature moment per view — never in dense UI (menus, tables, toasts).
- Functional motion stays on the neutral 150–300ms system.
prefers-reduced-motioncollapses it to the static mark.
Rules of thumb
- Animate
transformandopacity; avoid animating layout properties. - Everything under 400ms — users are here to finish tasks, not watch transitions.
- Respect
prefers-reduced-motion: movement collapses to a fade or nothing.