AnimationEvents for pseudo-elements

Hi,

I noticed today the lack of AnimationEvents for pseudo-elements. I realize that this is a tricky topic because JS does not have access to pseudo-elements, so it is impossible to add event listeners directly to the event listeners, nor have the event.target equate to the pseudo-element.

One way that this could be fixed is allow AnimationEvents to dispatch against their parent element, with event.target equal to the parent element as well. This obviously could cause compatibility issues with script already out in the wild.

Perhaps the following approach could be taken, but with a different event name such as "descedentanimationstart", "descendentanimationend", etc., but this name is too verbose and implies that it would work in other situations that already have sufficient support.

Has there been any thoughts about this already?

Thanks,
Jared

Received on Friday, 1 February 2013 16:17:14 UTC