I have a div with animated scrolling, and it contains hundreds of dynamically generated divs using append()
.
Each div has its own unique id and I need to get a list of all div ids within view a few milliseconds after the animated scroll has stopped.
Once I have the ids I'll be able to call a php script to dynamically append the appropriate content to each one.
I have seen this post and while it is helpful, you need to know the id names first, and also have an event listener on each which means many hundreds of event listeners.
I could get the position of the inner wrapper div at the top and bottom of the visible area. That would give me a range to search in, but how can I search for any divs in that area?
Or is there another way?