Added setTransitionType