media-feature
prefers-reduced-motion — CSS reference
Reports whether the user requests fewer nonessential animations. The other value is no-preference, which does not mean that every animation is safe. Start with a usable static state, then add motion where appropriate. A reduced-motion query is not a universal requirement to remove all animation, especially essential progress feedback.
Formal Syntax & Structure
css syntaxcss
@media (prefers-reduced-motion: reduce) { … }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS accessible theme lab</title><style>body {margin:0} .sample {height:12px;background:#006050}p{transition:transform 300ms}@media(prefers-reduced-motion:reduce){p{transition:none}}</style><body><p id="a">Static reading state</p></body></html>