Created
September 19, 2021 08:24
-
-
Save CheesecakeCG/5aa09c478696c65f30f48860ecd219d9 to your computer and use it in GitHub Desktop.
Autoscroll on a webpage
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
const interval = setInterval(function() { | |
window.scrollTo(0, window.scrollMaxY + 500); | |
}, 500); |
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
clearInterval(interval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment