-
-
Save nocodesupplyco/4b11847fffc5d489ad97ae79aab253c6 to your computer and use it in GitHub Desktop.
Prefers Reduced Motion Media Query
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
/* Hide/Show things if reduced motion is on in persons OS */ | |
@media (prefers-reduced-motion) { | |
.a11y-reduce-motion-show { | |
display: block; | |
} | |
.a11y-reduce-motion-hide { | |
display: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment