CSS transitions are now cleared after animating class changes