In the recipe Creating simple animation with the Transition API, we explored how to animate an object using one of the transition classes. What if, however, you want to create more complex animation sequences composed of multiple transition steps? This recipe shows you how to use the Transition API in order to create more elaborate animation sequences composed of multiple transition classes.
In order to follow this recipe, you must know how to create shapes and animate them using the Transition API. For an introduction on the API, refer to the recipe Creating simple animation with the Transition API. Again, all of the transition classes provided by the Transition API are located in the package javafx.animation.transition
. For this recipe you will use the class ParallelTransition
to compose multi-step, transition-based animation sequences.