Bookmark and Share

jQuery Scroll to Div

jQuery is a function that is very easy to use. This function will help you to quickly scroll to element ID.

1
2
3
4
5
6
$(".scrollto").click(function() {
     $('html, body').animate({
         scrollTop: $($(this).attr('href')).offset().top
     }, 600);
     return false;
});

Leave a Reply