Skip to content

Instantly share code, notes, and snippets.

@yayadrian
Created September 20, 2010 16:06
Show Gist options
  • Save yayadrian/588144 to your computer and use it in GitHub Desktop.
Save yayadrian/588144 to your computer and use it in GitHub Desktop.
// slowly scroll to the top of the page
$('html, body').animate({ scrollTop: 0 }, 'slow');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment