So according to MDN (it makes sense) the AnimationEvent has the bubble argument but how can one set it to true? Considering the event is fired from a CSS animation.
So according to MDN (it makes sense) the AnimationEvent has the bubble argument but
Share
Ok, it turns out that CSS does bubble events, for example:
HTML:
CSS:
JS:
You’ll see two events fired. The problem I had was that I was using jQuery’s
bind()and this binds to a specific selector rather than listening to bubbled events (I think).