Last active
February 6, 2018 06:52
-
-
Save wahengchang/3c0a8f7bb2542aa68f1e0bf4accc6ee9 to your computer and use it in GitHub Desktop.
browser scroll
This file contains hidden or 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.addEventListener('scroll', function(){ | |
console.log(window.pageYOffset) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment