Created
August 15, 2016 22:51
-
-
Save alexsul2008/fea891b108b76e0245412a559c57668d to your computer and use it in GitHub Desktop.
jQuery Scroll To Next Section
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
$(".scroll-next").click(function() { | |
var cls = $(this).closest(".section").next().offset().top; | |
$("html, body").animate({scrollTop: cls}, "slow"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment