JavaFX Sequential Transition
This transition is used to apply the list of animations on a node in sequential order (one by one). Sequential Transition is important in designing a game which animates its entities in sequential order.
In JavaFX, the class javafx.animation.SequentialTransition is used to represent sequential transition. We need to pass the list of multiple transition objects into the constructor of this class. These animations will be applied on the node in the sequential order (in the order, they are passed into the constructor).
The class contains only one property which is described in the following table along with its setter method.
There are four constructors in the class.
In the following example, we have created a polygon and applied various transitions on it in sequential order.