When using transitionEnd, if you kick off a transition of a child and a parent and the child transition finishes before the parent, the event bubbles up and tells the parent to end prematurely.
By checking whether or not the event target is the current target, you can determine whether or not the event is occurring on the element you actually care about.
When using transitionEnd, if you kick off a transition of a child and a parent and the child transition finishes before the parent, the event bubbles up and tells the parent to end prematurely.
By checking whether or not the event target is the current target, you can determine whether or not the event is occurring on the element you actually care about.