Created
June 22, 2016 03:51
-
-
Save raphaelkross/a7cbd5c80ab7ab21bfd5096f984a41dd 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
$('ul.nav li a, .logo a, .featured a, .hero-section a, .prices a').on('click', function(e) { | |
el = $(this).attr('href'); | |
if (el.charAt(0) == "#") { | |
$('html, body').animate({ | |
scrollTop: $(el).offset().top - 74 | |
}, 750); | |
e.preventDefault(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment