Animation in JavaFX can be divided into timeline animation and transitions.