prefers-reduced-motion

noun

say it: “prih-FURZ rih-DOOST MOH-shun” /prɪˈfɜːrz rɪˈduːst ˈmoʊʃən/

A CSS media feature that checks whether the person asked their device for less animation, so a page can calm or turn off its motion.

What does prefers-reduced-motion do?

prefers-reduced-motion checks whether the user has asked their device for less animation. Respect it: motion can make some people unwell.

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

In a sentence

  • “Inside a prefers-reduced-motion query, I turned the sliding banner into a gentle fade.”

Level: Journeyman · More CSS terms at this level

Updated