Query .pagePosition()Gets element position relative to document (viewport + scroll offset)query-pagepositioncomponentQuerypage.jsDimensionsModern replacement for jQuery offset() - returns document-relative position regardless of scroll["query","position","coordinates","document","page","scroll"].pagePosition()Example