The Transition component lets you describe a transition from one component state to another. Most commonly it's used to animate…