What is the fastest way to track list of top visible divs under the fixed header?
I'm working on layout, which you may visually imagine using a link below:
Fixed header is a div with
position: fixed. Which means, that scrolling process hides elements under it (that's why it's transparent on my image for illustration purposes). I need to track a list of vertically top elements (other divs) on a page, which are still visible. Using my layout example, I need a list of
red elements. They may be positioned in any way.
window.onScroll event and somehow effectively maintain ability to fetch the result in the fastest possible way.