Creates animated transitions for view navigators that moves two adjacent views in the same direction (replacing one with the other), as if one view is pushing the other out of the way. Looks similar to a classic slide carousel. Animates the x or y property of the views. The views may move up, down, right, or left (or at an arbitrary angle).

See also:

Constructor

@:value({ duration : 0.5, angleDegrees : 0.0 })new(angleDegrees:Float = 0.0, duration:Float = 0.5, ?ease:IEasing)

Creates a new SlideTransitionBuilder object.

Available since

1.0.0

.

Methods

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

Returns the transition function.

Available since

1.0.0

.

setAngle(angleDegrees:Float):SlideTransitionBuilder

Sets the angle, measured in degrees, that the views are translated during the transition.

Available since

1.0.0

.

See also:

setDown():SlideTransitionBuilder

Shortcut for setAngle(270.0).

Available since

1.0.0

.

setDuration(duration:Float):SlideTransitionBuilder

Sets the duration of the animation, measured in seconds.

Available since

1.0.0

.

setEase(ease:IEasing):SlideTransitionBuilder

Sets the easing function used for the animation.

Available since

1.0.0

.

setInterruptBehavior(interruptBehavior:EffectInterruptBehavior):SlideTransitionBuilder

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

.

setLeft():SlideTransitionBuilder

Shortcut for setAngle(180.0).

Available since

1.0.0

.

setParallax(parallax:Float):SlideTransitionBuilder

Sets the multiplier for the motion of the old view. The value is expected to be in the range from 0.0 to 1.0.

Available since

1.0.0

.

setRadians(angleRadians:Float):SlideTransitionBuilder

Shortcut for setAngle(angleRadians * 180.0 / Math.PI).

Available since

1.0.0

.

setRight():SlideTransitionBuilder

Shortcut for setAngle(0.0).

Available since

1.0.0

.

setUp():SlideTransitionBuilder

Shortcut for setAngle(90.0).

Available since

1.0.0

.