jQuery localscroll(); – slow scrolling down to in-page anchor links

jQuery “localscroll” function is so easy to implement! It’s a shame that I haven’t used this for so long.

After reading the basic jQuery library, and localscroll js, you’re set to go. Only following code will do the magic. Of course, I need to add more details if I want to specify divs and sections for localscroll.

<script type="text/javascript">
<!--
$(document).ready(function(){
$('[name of the specified section]').localScroll();
});
//-->
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *

*