I am making a parallax style website and i want the background-image property of a div to change when i reach the bottom of a div that is 100% width of the window. How would i detect that the bottom of the div has been scrolled to with javascript/jquery? It seems really obvious but nothing i have tried has had a positive result.
I could just use scrollTop() and reference the exact pixel that the bottom of the div lands on but i want it to be responsive and be able to change if the size of the div changes.