remove transition after the transition is completed