Reduced motion done right: what to keep, what to drop, how to test

prefers-reduced-motion is not "turn every animation off". What to keep, what to drop, CSS and JS that follow the setting live, and how to test it.

Updated 7 min readaccessibilityreduced-motioncsswcag

Tested 28 October 2026 with Chromium 153 through PlaywrightOn this page: 1 live demo, 1 clip

The short answer

  1. Write movement inside @media (prefers-reduced-motion: no-preference), so it only runs for people who have not asked for less.
  2. Under reduced motion, keep what carries meaning (a fade, a colour change, a focus ring, a progress bar) and drop travel, scaling, parallax, zooms and auto-playing loops.
  3. Never leave content hidden waiting for an animation: the reduced path must show the final state at once.
  4. In JavaScript, read matchMedia('(prefers-reduced-motion: reduce)') and listen for changes, because people switch it while your page is open.
  5. Test it: turn the setting on in your OS, or emulate it in Chrome DevTools (Rendering → Emulate CSS media feature).

Some people get dizzy, nauseous or lose their place when things slide, zoom or parallax across the screen. Vestibular disorders, migraines and concussion recovery are common reasons. Every major OS has a "reduce motion" switch for them, and the browser passes it on as prefers-reduced-motion: reduce. Respecting it is cheap, and doing it well does not mean a dead interface.

Reduce, do not delete

The setting asks for less movement, not less feedback. A button that confirms a save still needs to confirm it. Sort what you have:

Keep (maybe shorter) Drop or replace
fades and cross-fades elements travelling across the screen
colour and opacity changes on hover, press, focus scaling and zooming, especially of large areas
progress bars, spinners for real waits (a spinner can turn more slowly) parallax and scroll-linked movement
a check mark that appears auto-playing carousels, marquees, looping backgrounds
focus rings smooth scrolling on anchor links

WCAG 2.2 has two rules here. 2.3.3 (AAA) says motion triggered by interaction can be turned off unless it is essential. 2.2.2 (A, the baseline) says anything that moves on its own for more than five seconds needs a pause, stop or hide control, whatever the reduced-motion setting says. A looping hero video needs a pause button even for people who never touched the setting.

Live demoThe same list, both ways

The live demo loads here when scripts run. The text below says what it shows.

One button replays three notifications arriving twice, side by side: the full version (a 12 px rise and a fade, 400 ms, staggered) and the reduced one (a 200 ms fade, no travel, no stagger). Both end in the same place, and both still say that something happened. If your own setting asks for less motion, the full version waits at its end state until you press Play the full version once.

CSS: motion is opt-in

Write the calm version first, and add movement only for people who have not asked for less:

.card { opacity: 1; }                      /* the final state, always */

@media (prefers-reduced-motion: no-preference) {
  .card { animation: card-in 400ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .card { animation: card-fade 200ms ease-out both; }   /* still a fade: feedback, no travel */
  html { scroll-behavior: auto; }
}
@keyframes card-fade { from { opacity: 0; } }

The opposite pattern, a blanket "reduce" rule that sets every animation to none !important, is better than nothing, but it also kills the fades and spinners people still need, and it breaks components that wait for an animationend event that never fires.

JavaScript: read it and follow changes

Anything you animate from script (Web Animations, a library, a canvas) has to ask too, and keep asking:

const query = matchMedia('(prefers-reduced-motion: reduce)');
let reduced = query.matches;
query.addEventListener('change', e => { reduced = e.matches; });

export function reveal(el) {
  if (reduced) { el.style.opacity = '1'; return; }      // final state at once
  el.animate([{ opacity: 0, transform: 'translateY(12px)' }, { opacity: 1, transform: 'none' }],
             { duration: 400, easing: 'cubic-bezier(.2, .7, .2, 1)', fill: 'both' });
}

The listener matters: people turn the setting on when something makes them feel ill, and that is often while your page is open.

Let visitors choose on your site too

The OS switch is all-or-nothing for every app. Some people want calm on one busy site and motion everywhere else. A small "Motion: System / Full / Reduced / None" control that sets an attribute on <html> (and remembers it) lets them choose; your CSS then checks the attribute as well as the media query. Add a pause-everything switch beside it for anything that loops.

ClipFull motion and reduced, recorded

The same three notifications arriving with full motion (a 12 px rise and a fade, staggered) and with reduced motion (a 200 ms fade in place), played twice. Recorded in Chromium 153 on 28 Oct 2026, for readers with scripts off or on a slow connection; the live demo above does the same in your browser.

How to turn it on to test

Where Setting
macOS System Settings → Accessibility → Display → Reduce motion
Windows 11 Settings → Accessibility → Visual effects → Animation effects (off)
iPhone, iPad Settings → Accessibility → Motion → Reduce Motion
Android Settings → Accessibility → Colour and motion → Remove animations (names vary by maker)
Chrome, Edge DevTools ⋮ → More tools → Rendering → Emulate CSS media feature prefers-reduced-motion
Firefox about:config → ui.prefersReducedMotion = 1
Playwright tests browser.newContext({ reducedMotion: 'reduce' })

Then walk through the page and check three things: nothing travels or zooms, nothing is missing or invisible, and every action still says it worked.

Something here did not work?

Every command on this page was run before it was published, on the systems named in "How we tested this". If a step fails for you, write to [email protected] with what you ran and what you saw, and we will fix the page.