Skip to content

Motion tokens

The values below come straight from tokens/tokens.json and ship as CSS variables in tokens/tokens.css. Always animate with the token, never a literal number, so kiosk and TV screens and reduced motion can zero the distances and keep only the fade.

Previews also play when you hover or focus a row. Reduced motion shows no movement.

Durations

TokenValuePreview
--sw-dur-fast120ms
--sw-dur-base180ms
--sw-dur-slow240ms

Easings

TokenValuePreview (240ms)
--sw-ease-standardcubic-bezier(0.2, 0, 0, 1)
--sw-ease-entercubic-bezier(0.16, 1, 0.3, 1)
--sw-ease-exitcubic-bezier(0.4, 0, 1, 1)

Distances

TokenValueKiosk and TV
--sw-enter-y8px0px
--sw-pop-scale0.981
--sw-pop-offset4px0px
--sw-slide-x100%0%

Reduced motion: durations 0ms, distances zeroed, fade only.

Token architecture and usage document duration, easing and distance roles, scoped long-duration exceptions, reduced motion and kiosk/TV mapping. Motion flow connects them to choreography and interruption.