Creates animated transitions for view navigators that fade a display object to a solid color.

Available since

1.0.0

.

See also:

Constructor

@:value({ duration : 0.5, color : 0x000000 })new(color:UInt = 0x000000, duration:Float = 0.5, ?ease:IEasing)

Creates a new ColorFadeTransitionBuilder object.

Available since

1.0.0

.

Methods

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

Returns the transition function.

Available since

1.0.0

.

setBlack():ColorFadeTransitionBuilder

Shortcut for setColor(0x000000).

Available since

1.0.0

.

setColor(color:UInt):ColorFadeTransitionBuilder

Sets the color that the views fade between.

Available since

1.0.0

.

See also:

setDuration(duration:Float):ColorFadeTransitionBuilder

Sets the duration of the animation, measured in seconds.

Available since

1.0.0

.

setEase(ease:IEasing):ColorFadeTransitionBuilder

Sets the easing function used for the animation.

Available since

1.0.0

.

setInterruptBehavior(interruptBehavior:EffectInterruptBehavior):ColorFadeTransitionBuilder

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

.

setWhite():ColorFadeTransitionBuilder

Shortcut for setColor(0xffffff).

Available since

1.0.0

.