Skip to content

Instantly share code, notes, and snippets.

@brunomonteiro3
Created September 3, 2016 14:58
Show Gist options
  • Save brunomonteiro3/b28d958471be9cc577236f1564014649 to your computer and use it in GitHub Desktop.
Save brunomonteiro3/b28d958471be9cc577236f1564014649 to your computer and use it in GitHub Desktop.
jQuery - Do something after X pixels.
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
...
} else {
...
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment