Skip to content

FlashcardNot attempted

Reduced motion

Recall it before you reveal

How do you respect users who get motion sickness from animations?

Space to reveal
Show answer & explanation

Use the prefers-reduced-motion media query. Either opt IN to motion:

@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }
}

or tone it down under (prefers-reduced-motion: reduce) (shorter or no transitions, no parallax or auto-playing carousels). In JS: matchMedia('(prefers-reduced-motion: reduce)').matches.