Last active
September 13, 2020 15:19
-
-
Save acobster/1888e9d3b4187269d91e75506e13836b to your computer and use it in GitHub Desktop.
Frontend snippets
This file contains hidden or 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
/* | |
* SMOOTH SCROLLING IN PURE CSS | |
* | |
* CREDIT: https://twitter.com/zachleat/status/1296852504777457664 | |
* DEMO: https://smooth-scrolling.glitch.me/ | |
*/ | |
@media (prefers-reduced-motion: no-preference) { | |
html { | |
scroll-behavior: smooth; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment