replaced transitionEnd by transition-events