Add animation during transition.