I know how to detect an event animationendwith a regular DOM element, but how do you do this with a pseudo-element?
I know what it takes to search animationend, but how can I attach a pseudo-element using a handler that uses this event?
I tried the following, but I can't get it to work.
document.querySelector("#someSelector:after").addEventListener("animationend",...,false)
How can I do this in vanilla javascript?
user3186555
source
share