Skip to content

Guidelines · Motion

Snap in, settle, stay out of the way

If someone has asked their device for less motion (the prefers-reduced-motion: reduce setting), every animation below turns into an instant change. You don't have to take the CSS on faith: switch the setting on in the Rendering panel of your browser's DevTools (the built-in developer tools) and check.

M1. Snap-in

Target locked

M2. Draw-on line

M3. Count-up

89

M4. Rationed glitch

SIGNAL LOST

It plays at most 2 times through a 400ms (millisecond) cycle, about 2.5 flashes a second. That's under the limit of 3 flashes per second set by WCAG 2.3.1, a rule in the Web Content Accessibility Guidelines that protects people who can have seizures from flashing. It's used for errors only, never as decoration.

M5. Stepped arrival

The hover colour arrives in 3 jumps over 180ms, 60ms a step. It's built as a transition with stepped timing (a change that runs once each time the state is entered) instead of a looping keyframe animation. So by design nothing can replay while the pointer rests on the button. It needs no flash limit, because the steps only ever move toward the hover colour, and WCAG 2.3.1 counts a flash as a pair of opposite changes in brightness (luminance). The press stays instant. This applies to every Button and IconButton, and e2e/button-hover.spec.ts, an automated browser test, checks it.