Add animated transitions between states.