Created
June 23, 2016 19:14
-
-
Save mateusneves/f41afc9664f6444c7197d95f445cc3f3 to your computer and use it in GitHub Desktop.
Detect scroll position
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 (event) { | |
var scroll = $(window).scrollTop(); | |
console.log( scroll ); | |
if( scroll > 100 ){ | |
// Run | |
}else{ | |
// Run | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment