Smooth Scroll Between pages JS


<script src=""></script>


//when you click on a link in one page, if the link leads to an anchor in another page, this will will load the new page on the top and smooth scroll down to the anchor

$(document).ready(function () {

var urlHash = window.location.href.split("#")[1];

if (urlHash.length > 0)


scrollTop: $('#' + urlHash).offset().top

}, 875);




See also: Effects