The old code set `transitionEnd