Add a transition.