Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //scroll to bottom
- setInterval(function(){
- //scroll down
- $("html, body").animate({ scrollTop: 50 }, 5000);
- //scroll to top
- setTimeout(function() {
- $('html, body').animate({scrollTop:0}, 8000);
- },2000);//call every 2000 miliseconds
- },1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement