Check if transitionend event is triggered by the transitioned element
before firing the callback