Created
October 14, 2016 10:27
-
-
Save alrnz/827e5865fbab0ff119b22916a0e8aa09 to your computer and use it in GitHub Desktop.
Show something on scroll position
From http://stackoverflow.com/questions/17441065/how-to-detect-scroll-position-of-page-using-jquery
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() { | |
var height = $(window).scrollTop(); | |
if(height > some_number) { | |
// do something | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment