Last active
December 24, 2015 14:36
-
-
Save glauberramos/9720875a448b385da28c to your computer and use it in GitHub Desktop.
Hide header
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() > 200) { | |
$('#menu').css('display', 'none'); | |
} else { | |
$('#menu').css('display', 'block'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment