Last active
September 16, 2019 20:09
-
-
Save phantomtnt/8ae16f3d48e9b0c4950307182fc81c92 to your computer and use it in GitHub Desktop.
[Autoscroll page] Function that autoscroll the page, perfect for help to capture a webpage scroll preview in a browser viewport #Javascript #Helpers
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
| //Define page scroll function | |
| function pageScroll() { | |
| window.scrollBy(0, 2); | |
| scrolldelay = setTimeout(pageScroll, 10); | |
| } | |
| //Execute page scroll function | |
| pageScroll() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment