Created
July 24, 2016 01:11
-
-
Save ahmadmilzam/5f2fb170fed41ba4b3aff0d50825bdbe to your computer and use it in GitHub Desktop.
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
$(window).scroll(function() { | |
if ($(window).scrollTop() > 100) { | |
// > 100px from top - show div | |
} | |
else { | |
// <= 100px from top - hide div | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment