Recipes: how to listen to DOM insertions

The technique described here (more details in there): It basically involves putting a CSS animation to the elements that will be attached in the future. When they get inserted, they run the animation, and when the animation finish running, it throws an “animationstarts” event. The last part involves attaching a listener to the parent […]