Creates animated transitions for view navigators that modify the opacity of one or both views in transition. Animates the alpha property of a display object to make it fade in or out.

Available since

1.0.0

.

See also:

Constructor

@:value({ duration : 0.5, fadeOut : true, fadeIn : true })new(fadeIn:Bool = true, fadeOut:Bool = true, duration:Float = 0.5, ?ease:IEasing)

Creates a new FadeTransitionBuilder object.

Available since

1.0.0

.

Methods

build():(DisplayObject, DisplayObject) ‑> IEffectContext

Returns the transition function.

Available since

1.0.0

.

setDuration(duration:Float):FadeTransitionBuilder

Sets the duration of the animation, measured in seconds.

Available since

1.0.0

.

setEase(ease:IEasing):FadeTransitionBuilder

Sets the easing function used for the animation.

Available since

1.0.0

.

setFadeIn(fadeIn:Bool):FadeTransitionBuilder

Available since

1.0.0

.

setFadeOut(fadeOut:Bool):FadeTransitionBuilder

Available since

1.0.0

.

setInterruptBehavior(interruptBehavior:EffectInterruptBehavior):FadeTransitionBuilder

Sets the behavior of the transition when it is interrupted (whether it stops at the current position or jumps immediately to the end).

Available since

1.0.0

.