I associated the event transitionendwith div1. When the transition div1was completed, the event started. No problems.
I came across a special case:
I added 3 paragraphs to this div1, when each paragraph transition ends, an event is also fired div1 transitionend. Thus, the event was transitionendexecuted 4 times ..> & L;
In the div1 transitionendbody of the event listener function, I see that event.target! == this. I feel this is pretty funny!
Chrome and Firefox have this problem. Therefore, I assume that this is not an HTML5 browser error.
Can someone explain why an element transitionendcan also be called by this element of children?
Thank.
source
share