Basics
Guides
API Reference
Basics
Guides
API Reference
[9:7] extends: FxObj
Represents a JavaFX Timeline, a keyframe-based animation. Add keyframes with addKeyFrame() then call play().
Timeline ()
Creates a new Timeline with no keyframes.
addKeyFrame (double Millis, callback OnFinished)
Adds a keyframe at the specified time with a callback.
Millis is a double with the time in milliseconds.OnFinished is a callback called when this keyframe is reached.this object for chainingsetCycleCount (int Count)
Sets the number of times the timeline cycles before stopping.
Count is an int with the cycle count; pass -1 for indefinite looping.this object.setAutoReverse (bool Auto)
Sets whether the timeline reverses direction on alternating cycles.
Auto is a bool; true enables auto-reverse.this object.play ()
Starts playing the timeline.
this object.stop ()
Stops the timeline.
this object.setOnFinished (callback OnFinished)
Registers a callback to invoke when the timeline finishes all cycles.
OnFinished is a callback invoked with an ActionEvent when the timeline completes.this object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.