tornadofx / tornadofx / transform


fun UIComponent.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 UIComponent that all run simultaneously.


time - How long the animation will take

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

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

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

opacity - The final opacity of the component

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 component