Skip to content

Instantly share code, notes, and snippets.

@graste
Forked from zachleat/smoothscroll.css
Created August 18, 2020 19:18
Show Gist options
  • Save graste/ea53b66b1f24af6aad0d348e78f5b895 to your computer and use it in GitHub Desktop.
Save graste/ea53b66b1f24af6aad0d348e78f5b895 to your computer and use it in GitHub Desktop.
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment