Skip to content

Direction

The direction in which the animation should play.

In the following example, all animations have the same from and to values but they play in different directions.

Direction
ForwardReverseAlternateAlternateReverse

Forward

Direction.Forward

Play the animation in the normal direction.

Reverse

Direction.Reverse

Play the animation in reverse direction.

Alternate

Direction.Alternate

Alternate the animation direction on each iteration, starting with normal.

AlternateReverse

Direction.AlternateReverse

Alternate the animation direction on each iteration, starting with reverse.