Skip to content

Instantly share code, notes, and snippets.

@justinallen
Last active September 30, 2015 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinallen/f3afd63769ac025f8fc8 to your computer and use it in GitHub Desktop.
Save justinallen/f3afd63769ac025f8fc8 to your computer and use it in GitHub Desktop.
back to top button
$("#back_to_top").click(function(e){
e.preventDefault();
$('html, body').animate({scrollTop:0}, 'slow');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment