OneBite.Dev

Auto Scroll page in Javascript

Here is the snippet using scrollBy() method in Javascript. You can try this out directly by opening “right click -> inspect tab -> console” and paste this on that tab

function pageScroll() {
    window.scrollBy(0,1);
    scrolldelay = setTimeout(pageScroll,100);
}

pageScroll()

Feel free to play with the speed by change the number 100 there

javascript