Created
October 5, 2022 19:46
-
-
Save d2s/73ab9ae1308b4e4caf958d2c8d33c0f7 to your computer and use it in GitHub Desktop.
Reduced motion for people who prefer not to see animations and transitions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove all animations and transitions | |
// for people who prefer not to see them | |
@media (prefers-reduced-motion: reduce) { | |
* { | |
animation-duration: 0.01ms !important; | |
animation-iteration-count: 1 !important; | |
transition-duration: 0.01ms !important; | |
scroll-behavior: auto !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment