How do I get/set top position of elements? scrollTop, offsetTop, pageYOffset, scrollY? Help!

Getting the distance of document scrolled, setting the top position of elements, and even calculating the remaining height of the page.Continue reading on Medium »

Link: https://medium.com/@daniwhkim/how-do-i-get-set-top-position-of-elements-scrolltop-offsettop-pageyoffset-scrolly-help-275a7ada5569?source=rss——javascript-5