/ Published in: jQuery

This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function scroll_to(div){ $('html, body').animate({ scrollTop: $(div).offset().top },1000); }
URL: http://www.ksnagra.com/examples/jquery/page-scroll-to-anchor-tag/
Comments
