How can I calculate an elements scroll position as a percentage?
I would like to calculate the scroll position of an element within the window as a percentage. 0% is where the top of the element is at the bottom of the window (it has not been shown yet) 100% is where the bottom of the element is at the top of the window (all of… Read More How can I calculate an elements scroll position as a percentage?