Skip to content

Instantly share code, notes, and snippets.

@ahikmatf
Created February 2, 2019 05:56
Show Gist options
  • Select an option

  • Save ahikmatf/5a27ac593f5caff48c8ea8ac3a52def7 to your computer and use it in GitHub Desktop.

Select an option

Save ahikmatf/5a27ac593f5caff48c8ea8ac3a52def7 to your computer and use it in GitHub Desktop.
x=1
interval = setInterval(function() {
window.scroll(0, x);
x = x + 1; //if you want to increase speed simply increase increment interval
}, 40);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment