Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps JavaFX FadeTransition, an animation that smoothly changes a node's opacity from one value to another over a specified duration in milliseconds. Set the target node with setNode(), define the start and end opacity with setFromValue() and setToValue() (both in the range 0.0 to 1.0), and optionally configure cycling and auto-reversal. Call play() to start and setOnFinished() to run a callback when the animation completes.
FadeTransition (double Millis)
Creates a new FadeTransition with the specified duration.
Millis is a double with the animation duration in milliseconds.setNode (object NodeObj)
Sets the target node for this fade animation.
NodeObj is the scene-graph node to animate.this object.setFromValue (double Val)
Sets the starting opacity value for the fade animation.
Val is a double in the range 0.0 (fully transparent) to 1.0 (fully opaque).this object.setToValue (double Val)
Sets the ending opacity value for the fade animation.
Val is a double in the range 0.0 (fully transparent) to 1.0 (fully opaque).this object.setCycleCount (int Count)
Sets the number of times the animation cycles before stopping.
Count is an int with the cycle count; pass -1 for indefinite looping.this object.setAutoReverse (bool Auto)
Sets whether the animation reverses direction on alternating cycles.
Auto is a bool; true enables auto-reverse.this object.play ()
Starts playing the fade animation.
this object.stop ()
Stops the fade animation.
this object.setOnFinished (callback OnFinished)
Registers a callback to invoke when the animation finishes.
OnFinished is a callback invoked with an ActionEvent when the animation completes.this object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.