Friday, October 18, 2013

jQuery - scroll to element

http://stackoverflow.com/questions/6677035/jquery-scroll-to-element
$('html, body').animate({
        scrollTop: $("#elementtoScrollToID").offset().top
    }, 2000);

No comments:

Post a Comment

Followers

Blog Archive