Skip to content

Instantly share code, notes, and snippets.

@glauberramos glauberramos/hideHeader.js
Last active Dec 24, 2015

Embed
What would you like to do?
Hide header
$(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
You can’t perform that action at this time.