Design System

Motion reference ​

Every duration and curve. For what these mean, see Overview. For how to choose between them, see Usage.

Durations ​

ClassValueFor
duration-state150msA control changing state. Hover, focus, selection, a colour or an opacity moving
duration-surface300msA surface arriving or leaving. A drawer, a panel, a strip that opens

Curves ​

ClassValueFor
ease-standardcubic-bezier(0.4, 0, 0.2, 1)Everything, unless a surface is arriving
ease-entercubic-bezier(0, 0, 0.2, 1)A surface arriving. Decelerating, so it settles rather than stops

What a bare transition resolves to ​

PropertyResolves to
--default-transition-durationvar(--duration-state), so 150ms
--default-transition-timing-functionvar(--ease-standard)

The two lines are written by the theme rather than emitted with the tokens, so anything wiring its own theme has to point them at the tokens itself or a bare transition falls back to the framework's own defaults. Those happen to hold the same 150ms and the same curve today, so nothing looks wrong, and nothing holds them in step if either side moves.

What animates ​

AnimatesNever animates
Colour on a control changing stateAnything on a surface carrying captured content
Opacity on something appearing or dimmingAny property that forces layout
A surface arriving or leavingA row in a data table, a response body, an editor
Transform, when a surface travels
A loading or progress indicator

Layout properties to avoid animating: width, height, top, left, margin. Animate transform and opacity, which composite.

Nothing Caido writes uses transition-all, because it names no property and animates whatever changes. The library writes it in some of its own presets, which falls under the motion the library owns.

Reduced motion ​

One global stylesheet switches every transition and every animation off for the whole page. A component does not write its own variant.

Keeps movingWhy
animate-pulse on a loading skeletonAnimates opacity only, which WCAG 2.3.3 excludes from motion animation, and it is the only thing reporting that the panel is loading
animate-spin on a spinnerFalls under the preload exception to WCAG 2.2.2, where not indicating progress would suggest the app had frozen

Everything else stops, including animate-ping on the halo of a websocket tag, because the static dot beneath it already carries the same information.

Values that are not on the scale ​

ValueWhy it is not a token
A progress bar's 1000msA fixed smoothing time on the bar's transform, rather than a control changing state
A route transition's 50msBelow the threshold at which a change reads as motion at all

Anything under roughly 100ms belongs in the component that needs it, with its reason written down.

Motion drawn by the component library ​

Components from the library carry their own durations and curves, and those are not set by this system. The library writes duration-200 and ease-in in its own presets, neither of which is on this scale.

Where a package draws the motion, the package owns it, so a difference there is raised against the package rather than repainted locally.