Created
November 29, 2012 19:37
-
-
Save ascot21/4171325 to your computer and use it in GitHub Desktop.
jQuery Easing One-Page
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
$('nav ul li a').bind('click',function(event){ | |
var $anchor = $(this); | |
$('html, body').stop().animate({ | |
scrollTop: ($($anchor.attr('href')).offset().top)-80 | |
}, 1500,'easeInOutExpo'); | |
event.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment