Skip to content

Instantly share code, notes, and snippets.

@jobsamuel
Created March 26, 2017 15:53
Show Gist options
  • Save jobsamuel/ff0a3c09248d4158b8e08a6fa00c6c28 to your computer and use it in GitHub Desktop.
Save jobsamuel/ff0a3c09248d4158b8e08a6fa00c6c28 to your computer and use it in GitHub Desktop.
window.addEventListener('scroll', () => {
if (window.scrollY === document.body.scrollHeight - window.innerHeight) {
// Do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment