Created
February 6, 2018 13:21
-
-
Save amandoabreu/8917990d28881cddd5010244f366ed98 to your computer and use it in GitHub Desktop.
yes
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
$(window).scroll(function() { | |
if ($(this).scrollTop() > 0){ | |
$('body').addClass("header-detached"); | |
} else { | |
$('body').removeClass("header-detached"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment