Creates transitions for view navigators that show or hide a display object masked by a growing or shrinking circle. Both display objects remain stationary while a mask is animated.
1.0.0
.See also:
Constructor
new(open:Bool = true, originRatioX:Float = 0.5, originRatioY:Float = 0.5, duration:Float = 0.5, ?ease:IEasing)
Creates a new IrisTransitionBuilder
object.
1.0.0
.Methods
build():(DisplayObject, DisplayObject) ‑> IEffectContext
Returns the transition function.
1.0.0
.setDuration(duration:Float):IrisTransitionBuilder
Sets the duration of the animation, measured in seconds.
1.0.0
.setEase(ease:IEasing):IrisTransitionBuilder
Sets the easing function used for the animation.
1.0.0
.setInterruptBehavior(interruptBehavior:EffectInterruptBehavior):IrisTransitionBuilder
Sets the behavior of the transition when it is interrupted (whether it stops at the current position or jumps immediately to the end).
1.0.0
.setOpen(open:Bool):IrisTransitionBuilder
Sets whether the iris opens or closes.
1.0.0
.setOriginRatioX(originRatioX:Float):IrisTransitionBuilder
Sets the x position of the origin, as a ratio of the view's width.
1.0.0
.setOriginRatioY(originRatioY:Float):IrisTransitionBuilder
Sets the y position of the origin, as a ratio of the view's height.
1.0.0
.setOriginX(originX:Float):IrisTransitionBuilder
Sets the x position of the origin, in pixels.
1.0.0
.setOriginY(originY:Float):IrisTransitionBuilder
Sets the y position of the origin, in pixels.
1.0.0
.