Created
September 29, 2017 09:37
-
-
Save schalkburger/568f2f09bdd373b61e278af24b755aca to your computer and use it in GitHub Desktop.
Output the Scroll Position on Console
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(example); | |
function example() { | |
var tempScrollTop = $(window).scrollTop(); | |
console.log("Scroll from Top: " + tempScrollTop.toString()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment