New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Can a webpage be made to scroll automatically?
When using the animate tag with svg shapes, I had to scroll horizontally to keep going along with them. Can I make the webpage scroll along with the shape automatically?
3 Answers
+ 4
yeah of course,
you can use that:
var scroll = setInterval(function(){ window.scrollBy(0,1000); }, 2000);
for more:
http://scraping.pro/make-web-page-to-auto-scroll-down/
+ 1
Easy:
function pageScroll() {
window.scrollBy(0,1);
scrolldelay = setTimeout(pageScroll,10);
}
pageScroll()
+ 1
yes,yes you using jquery you can set the pages
$("html").scrollTop=50 e.t.c