Created
August 16, 2021 19:49
-
-
Save fmagrosoto/27d1123f63891575ec8ffb50f1312d26 to your computer and use it in GitHub Desktop.
Detectar cuando se llega al final de una página
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(() => { | |
if ($(window).scrollTop() === ($(document).height() - $(window).height())) console.log('This is the end...') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment