Scroll to Top
17
May
2013
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});

That will take any anchore <a> tag whose href=”#top” and make it smooth scroll to the top.

  • 658 View
  • Pin It