Skip to content
Gym funnel spec

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

Línea de pulso que se dibuja: el ritmo de una clase

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.

Try a level on this page

Tokens per level

CSS custom properties from motion.css, shown without their two leading dashes.

Motion tokens
TokenNoneSubtle (default)ExpressiveUsed for
motion-fast0ms120ms160mshover, focus, press feedback
motion-standard0ms180ms280msa panel opens, a status appears
motion-slow0ms240ms420msthe largest transition on the page
motion-distance0px4px12pxhow far things travel on entry
motion-lift0px-2px-3pxbutton hover lift
motion-press10.980.96button press scale
motion-stagger0ms0ms50msdelay between list items: none at subtle
motion-loop0ms2400ms1800msthe one hero loop
motion-loop-statepausedrunningrunning
ease-entersamecubic-bezier(0.2, 0, 0, 1)same
ease-exitsamecubic-bezier(0.4, 0, 1, 1)same
ease-movesamecubic-bezier(0.2, 0, 0, 1)cubic-bezier(0.34, 1.4, 0.64, 1)

Easing curves

Every animation, with its reduced-motion rule

Transitions
TriggerWhat movesTokensEasingReduced motion
Button hoverbackground, liftmotion-fast, motion-liftease-entercolour changes at once, no lift
Button pressscalemotion-fast, motion-pressease-enterno scale
Class option pickborder, backgroundmotion-fastease-enterinstant
Loading spinnerrotate, 900 ms loopfixed (status, not decoration)linearstops; the label “Reservando…” says it
Success checkrise and scale inmotion-standard, motion-distanceease-moveappears in place
Hero pulse linestroke drawsmotion-loopease-moveshows the finished line