The prefers-reduced-motion media feature detects whether a user has asked their operating system to minimize non-essential motion.
Use it to replace large movement, zooming, parallax, and continuous animation with calmer transitions or instant state changes. Motion that communicates essential status can remain, but should be restrained.
Baseline · Widely available.
This preference query is designed for progressive enhancement. Browsers that do not support it keep the default styles.
Tip Start with a calm default
A motion-reduced experience should preserve the same content and actions. Do not remove information just because animation is disabled.
Bottom line: Safe for production as progressive enhancement. Keep a usable non-animated default.
Remember
Key Takeaways
✓
Role: respond to a user’s prefers-reduced-motion setting.
✓
Values:reduce, no-preference.
✓
Default: keep the page accessible when the query is unsupported.
✓
Test: use actual operating-system preference settings.
★
One line: use prefers-reduced-motion to respect user preferences without weakening the default experience.
Frequently Asked Questions
It detects whether the user has asked the operating system to minimize non-essential motion.
It accepts reduce and no-preference. The reduce value means less motion was requested.
No. Remove or simplify non-essential movement. Small motion that clearly communicates state may remain when it is not disruptive.
That is a strong progressive-enhancement pattern: ship a calm default, then add richer motion only when no preference to reduce it is expressed.
Enable the reduced-motion or animation setting in the operating system, then reload the page and inspect matchMedia('(prefers-reduced-motion: reduce)').matches.
CSS can apply styles directly, and JavaScript can observe the same query through window.matchMedia.