tornadofx / tornadofx / javafx.scene.Node / transform


fun Node.transform(time: Duration, destination: Point2D, angle: Number, scale: Point2D, opacity: Number, easing: Interpolator = Interpolator.EASE_BOTH, reversed: Boolean = false, play: Boolean = true, op: ParallelTransition.() -> Unit = {}): <ERROR CLASS>

A convenience function for creating a TranslateTransition, RotateTransition, ScaleTransition, FadeTransition on a Node that all run simultaneously.


time - How long the animation will take

destination - Where to move the node (relative to its translation origin)

angle - How far to rotate the node (in degrees; relative to its 0 rotation)

scale - How to scale the node (relative to its default scale)

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

A ParallelTransition on this node