Is there a way to measure the offset of the window in jQuery, in order than I might compare the positions of a 'fixed' element and a relatively positioned one?
I need to be able to tell how far the window is scrolled so I can use the figure to calculate the difference between the height of the fixed element (which is relative to the viewport top) and the relative object (which is relative to the top of the document)
$(window).scrollLeft() can be used to find scroll positions.
window.pageYOffset, which return the number of pixels offset by scrolling.
©2020 All rights reserved.