Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove animations, smooth scrolling, and transitions when the prefers-reduced-motion: reduce media query is set #39

Closed
chris-pearce opened this issue Jan 18, 2019 · 1 comment
Labels
a11y 🌏 Everything related to accessibility. idea 💡 An idea that may become a new feature. lib: grouped 🎒 Everything related to the lib's "Grouped" section.

Comments

@chris-pearce
Copy link
Owner

chris-pearce commented Jan 18, 2019

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

https://twitter.com/scottjehl/status/1085600505299111936?s=20

@chris-pearce chris-pearce added lib: grouped 🎒 Everything related to the lib's "Grouped" section. idea 💡 An idea that may become a new feature. a11y 🌏 Everything related to accessibility. labels Jan 18, 2019
@chris-pearce
Copy link
Owner Author

Addressed in #40.

@chris-pearce chris-pearce mentioned this issue Jan 19, 2019
Merged
@chris-pearce chris-pearce changed the title Remove animations and transitions when the prefers-reduced-motion: reduce media query is set Remove animations, smooth scrolling, and transitions when the prefers-reduced-motion: reduce media query is set Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y 🌏 Everything related to accessibility. idea 💡 An idea that may become a new feature. lib: grouped 🎒 Everything related to the lib's "Grouped" section.
Projects
None yet
Development

No branches or pull requests

1 participant