html { | |
scroll-behavior: smooth; | |
} | |
@media (prefers-reduced-motion: reduce) { | |
html { | |
scroll-behavior: auto; | |
} | |
} |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing @zachleat! |
This comment has been minimized.
This comment has been minimized.
Per some of the comments on the Tweet https://twitter.com/zachleat/status/1295737380738146304 I’ve switched to using: @media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
} via https://twitter.com/g16n/status/1296799212445880321 and https://twitter.com/ericwbailey/status/1295741897483464705 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Found via @netlify repo for https://jamstackconf.com/