prefers-reduced-motion

The CSS media feature that reports whether the user has asked their operating system to minimise animation.

In more detail

When it matches reduce, components should remove large movement such as sliding, zooming, spinning and parallax, keeping at most gentle fades. Setting duration tokens to zero inside the media query does this across a whole design system.

Example

In the browser: Large movement, zooming and parallax can make people with vestibular disorders dizzy or ill. Wrap such animations in @media (prefers-reduced-motion: no-preference), or replace them with gentle fades when reduce is set.

Related terms

Taught in

References