Implement transition animations.