As I scroll, I am looking for a way to hide my menu and trigger other actions when an image reaches the top of the screen. These images span the full width of the page, so they pass through every point on the x-axis. I've attempted using elementFromPoint, but that only gives me the entire html document. Is there a different method I can use to achieve this?