The first state doesn't hide before the new state's fade animation has finished

the first state doesn’t hide before the new state’s fade animation has finished, I set the pane background to be transparent, when the next state comes in, i can see the previous state in the background, is there anyway I can move the previous state to the left or make it disappear before the new state comes in?