Created
March 13, 2014 21:34
-
-
Save origamid/9537452 to your computer and use it in GitHub Desktop.
Header Fixo Animado
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
$(document).scroll(function() { | |
if( $(this).scrollTop() > 100 ) { | |
$(".header-fixed").addClass("header-small"); | |
} else if( $(this).scrollTop() < 100 ) { | |
$(".header-fixed").removeClass("header-small"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment