transition function

Create a transition object