Created
February 8, 2017 03:44
-
-
Save faddah/ceb9f5bb98b381727b50c3077ccd068d to your computer and use it in GitHub Desktop.
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
$('.top-btn').click(function(e) { | |
const top = $('#top')[0]; | |
$(this).animate( | |
{ | |
scrollTop: top | |
}, 600, 'swing', () => {console.log("going back up!")}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment