Created
May 23, 2017 08:53
-
-
Save Krasnov8953/f64ba887f43baff8073ad23c3072272f to your computer and use it in GitHub Desktop.
easing scroll to element
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
$(document).ready(function(){ | |
$('.btn_blue').click(function(e){ | |
e.preventDefault(); | |
var destination = $('#comments').offset().top; | |
$('html, body').animate({ | |
scrollTop: destination | |
}, 600); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment