tornadofx / tornadofx / fade

fade

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

Parameters

time - How long the animation will take

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

Return
A FadeTransition on this component