Created
June 26, 2018 03:22
-
-
Save weird-coon/1420e1ae3294ec9d5dc5107b69635b44 to your computer and use it in GitHub Desktop.
Simple Jquery smoothie back to top button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Back to top function | |
$('#top').click(function() { | |
$("html, body").animate({ scrollTop: 0 }, 600); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment