window.scrollY
: starts counting from top left corner of the documentwindow.innerHeight
: starts counting from the viewportHTMLElement.offsetTop
: returns the distance ofHTMLElement
relative to its parent element.
This repository was archived by the owner on Oct 11, 2019. It is now read-only.