Tutorial: Introduction to JavaFX animations


This article goes through all types of animations, starting with Animation and its subclasses Transition and Timeline, before representing a lower level animation with AnimationTimer. While Transition provides a simpler and more user-friendly way to create animations, Timeline offers greater flexibility and is suitable for more complex animations. In contrast, AnimationTimer is designed for frame-by-frame updates and does not make use of WritableValue.

More at https://dev.java/learn/javafx-animations