This site runs best with JavaScript enabled.

Catch all for prefers-reduced-motion

Kevin Beck

April 21, 2021


A good blanket remove all animations and transitions for people that prefer not to see them

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

Source