tornadofx / tornadofx / 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.


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

A FadeTransition on this component