Last active
September 7, 2018 10:25
-
-
Save alegut/6c59c35718652eb6e10ea49b0fa67753 to your computer and use it in GitHub Desktop.
Detect scroll to bottom
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
$(window).scroll(function() { | |
if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
alert("bottom!"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment