Adding animation for 2 transitions.