tornadofx / tornadofx / javafx.scene.Node / move

move

fun Node.move(time: Duration, destination: Point2D, easing: Interpolator = Interpolator.EASE_BOTH, reversed: Boolean = false, play: Boolean = true, op: TranslateTransition.() -> Unit = {}): TranslateTransition

A convenience function for creating a TranslateTransition on a Node.

Parameters

time - How long the animation will take

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

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 TranslateTransition on this node