Skip to content

Instantly share code, notes, and snippets.

@tanshio
Created July 10, 2014 09:28
Show Gist options
  • Save tanshio/6b5d4b3b6896cbba0b39 to your computer and use it in GitHub Desktop.
Save tanshio/6b5d4b3b6896cbba0b39 to your computer and use it in GitHub Desktop.
y
var y = window.scrollY || document.body.scrollTop || document.documentElement.scrollTop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment