Skip to content

Instantly share code, notes, and snippets.

@wplit
Created July 11, 2022 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/fc95e371c5fb88d7a152203987bbc645 to your computer and use it in GitHub Desktop.
Save wplit/fc95e371c5fb88d7a152203987bbc645 to your computer and use it in GitHub Desktop.
remove transforms if reduced motion
@media (prefers-reduced-motion: reduce) {
[data-rellax-speed] {
transform: none!important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment