I'm working on an infinite scroll implementation using IndexedDB. I am at the part where I need to determine the last element visible on the page.
How can I determine whether an element on the page is within the user's current scroll pane? If possible, I would prefer native JS over libraries or plugins for jQuery.