Added some animation for the transitions.