Created
July 5, 2017 09:21
-
-
Save afiru/657df2b421f741745799d84461c2dd43 to your computer and use it in GitHub Desktop.
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).bind("scroll", function() { | |
scrollHeight = $(document).height(); | |
scrollPosition = $(window).height() + $(window).scrollTop(); | |
if ( (scrollHeight - scrollPosition) / scrollHeight <= 0.06) { | |
} else { | |
//それ以外のスクロールの位置の場合 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment