-
-
Save Hatteron/08d3a8c8a21feb99591e3221b4ac2eff 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