Fix direction option problem when inline animation.