tornadofx / tornadofx / move

move

fun UIComponent.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 UIComponent.

Parameters

time - How long the animation will take

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

easing - How to interpolate the motion

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 component