Created
November 8, 2018 00:01
-
-
Save alesmit/100752fe3412bf60ada5782f1b09270e to your computer and use it in GitHub Desktop.
Don't Stop Scrolling
This file contains 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
// to make it scroll forever | |
let interval = setInterval(() => window.scrollTo(0, document.body.scrollHeight)); | |
// to stop it | |
clearInterval(interval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment