Gets the Y distance of the element from the top of the document.
const top = dom.getScrollTop(el); window.scroll(0, top); Copy
const top = dom.getScrollTop(el); window.scroll(0, top);
Gets the Y distance of the element from the top of the document.