Created
June 14, 2018 00:50
-
-
Save muks999/0c31989b965083c2f98c06f448a0de9b to your computer and use it in GitHub Desktop.
Fix Header
This file contains hidden or 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
function headerScroll() { | |
if ($(window).scrollTop() > 150) { | |
$('header').addClass('slicky'); | |
} else { | |
$('header').removeClass('slicky'); | |
} | |
} | |
headerScroll(); | |
$(window).scroll(function () { | |
headerScroll(); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment