tornadofx / tornadofx / javafx.scene.Node / fade

fade

fun Node.fade(time: Duration, opacity: Number, easing: Interpolator = Interpolator.EASE_BOTH, reversed: Boolean = false, play: Boolean = true, op: FadeTransition.() -> Unit = {}): FadeTransition

A convenience function for creating a FadeTransition on a Node.

Parameters

time - How long the animation will take

opacity - The final opacity of the node

easing - How to interpolate the animation

reversed - Whether the animation should be played in reverse

play - Whether the animation should start playing automatically

op - Modify the animation after it is created

Return
A FadeTransition on this node