Last active
August 3, 2016 17:15
-
-
Save koentjuh1/231047dd21199f9f0166 to your computer and use it in GitHub Desktop.
Smooth scrolling
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').on('click', function (e) { | |
e.preventDefault(); | |
$('html,body').animate({ | |
scrollTop: 0 | |
}, 700); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment