javascript - AutoScroll to next div after a pause -


basically have website title of page 1 takes entire screen , content below after scroll. wondering if possible make automatically scroll smoothly next div after maybe half second on "title screen". can see talking going on this page.

the class name content contactus, made specific class name scrolling called scroll-down. because want use in few different areas, same concept each area.

looking @ code, works:

$(document).ready(function(){     $('html,body').animate({         scrolltop: $('.portfolio-header').height()     }, 1000); }); 

note using animate() smoothly scroll (in period of 1000 milisecs) , getting height of previous block .portfolio-header in order know number of pixels scroll.

and finally, wrap of in .ready() function wait document ready before doing scroll.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -