Update direction of transition