Skip to content

Instantly share code, notes, and snippets.

@erezLieberman
Created April 22, 2014 17:55
Show Gist options
  • Save erezLieberman/11188498 to your computer and use it in GitHub Desktop.
Save erezLieberman/11188498 to your computer and use it in GitHub Desktop.
go to Top on click jquery
$(".gotoTop").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment