Created
September 2, 2016 07:47
-
-
Save Swistikkk/cfc14a0f9388bdfe5ed1be8636ad49ac 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
forEach(menuItems, (link) => { | |
$(link).on('click', function(e) { | |
e.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear'); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment