imakewebthings / waypoints

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.
http://imakewebthings.com/waypoints/
10.38k stars 1.33k forks source link

detecting the leave-from-the-view of the element ( whose arrival-in-view status ) was detected #597

Open halukkaramete opened 6 years ago

halukkaramete commented 6 years ago

Did I miss or is it true that we can only detect the in-view status of elements and not their being out of the view?

For example, I can start a youtube video if the div containing the video is in view, but I cannot stop or pause as we scroll away from that view?