{"id":363057,"date":"2022-02-08T12:55:51","date_gmt":"2022-02-08T20:55:51","guid":{"rendered":"https:\/\/css-tricks.com\/?p=363057"},"modified":"2022-02-08T12:55:54","modified_gmt":"2022-02-08T20:55:54","slug":"nuking-motion-with-prefers-reduced-motion","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/nuking-motion-with-prefers-reduced-motion\/","title":{"rendered":"No Motion Isn’t Always prefers-reduced-motion"},"content":{"rendered":"\n
There is a code snippet that I see all the time when the media query This is CSS that attempts to obliterate any motion on a website under the condition that the user has specified a preference for reduced motion in the accessibility preferences of their operating system.<\/p>\n\n\n\n\n\n\n\nprefers-reduced-motion<\/code> is talked about. Here it is:<\/p>\n\n\n\n
@media (prefers-reduced-motion: reduce) {\n * {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}<\/code><\/pre>\n\n\n\n