Packagefeathers.motion
Classpublic class Fade
InheritanceFade Inheritance Object

Product Version : Feathers 2.1.0

Creates effects for Feathers components and transitions for screen navigators, that animate the alpha property of a display object to make it fade in or out.

See also

Effects and animation for Feathers components
Transitions for Feathers screen navigators: Fade


Public Methods
 MethodDefined By
  
createCrossfadeTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function
[static] Creates a transition function for a screen navigator that crossfades the screens.
Fade
  
createFadeBetweenEffect(startAlpha:Number, endAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function
[static] Creates an effect function that fades the target component by animating the alpha property between a start value and an ending value.
Fade
  
createFadeFromEffect(startAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function
[static] Creates an effect function that fades the target component by animating the alpha property from a start value to its current value.
Fade
  
createFadeInEffect(duration:Number = 0.25, ease:Object, interruptBehavior:String):Function
[static] Creates an effect function that fades in the target component by animating the alpha property from 0.0 to 1.0.
Fade
  
createFadeInTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function
[static] Creates a transition function for a screen navigator that fades in the new screen by animating the alpha property from 0.0 to 1.0, while the old screen remains fully opaque at a lower depth.
Fade
  
createFadeOutEffect(duration:Number = 0.25, ease:Object, interruptBehavior:String):Function
[static] Creates an effect function that fades out the target component by animating the alpha property from 1.0 to 0.0.
Fade
  
createFadeOutTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function
[static] Creates a transition function for a screen navigator that fades out the old screen by animating the alpha property from 1.0 to 0.0, while the new screen remains fully opaque at a lower depth.
Fade
  
createFadeToEffect(endAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function
[static] Creates an effect function that fades the target component by animating the alpha property from its current value to a new value.
Fade
Method Detail
createCrossfadeTransition()method
public static function createCrossfadeTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function

Creates a transition function for a screen navigator that crossfades the screens. In other words, the old screen fades out, animating the alpha property from 1.0 to 0.0. Simultaneously, the new screen fades in, animating its alpha property from 0.0 to 1.0.

Parameters

duration:Number (default = 0.5)
 
ease:Object (default = NaN)
 
tweenProperties:Object (default = null)

Returns
Function

See also

createFadeBetweenEffect()method 
public static function createFadeBetweenEffect(startAlpha:Number, endAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function

Creates an effect function that fades the target component by animating the alpha property between a start value and an ending value.

Parameters

startAlpha:Number
 
endAlpha:Number
 
duration:Number (default = 0.25)
 
ease:Object (default = NaN)
 
interruptBehavior:String (default = NaN)

Returns
Function

See also

createFadeFromEffect()method 
public static function createFadeFromEffect(startAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function

Creates an effect function that fades the target component by animating the alpha property from a start value to its current value.

Parameters

startAlpha:Number
 
duration:Number (default = 0.25)
 
ease:Object (default = NaN)
 
interruptBehavior:String (default = NaN)

Returns
Function

See also

createFadeInEffect()method 
public static function createFadeInEffect(duration:Number = 0.25, ease:Object, interruptBehavior:String):Function

Creates an effect function that fades in the target component by animating the alpha property from 0.0 to 1.0.

Parameters

duration:Number (default = 0.25)
 
ease:Object (default = NaN)
 
interruptBehavior:String (default = NaN)

Returns
Function

See also

createFadeInTransition()method 
public static function createFadeInTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function

Creates a transition function for a screen navigator that fades in the new screen by animating the alpha property from 0.0 to 1.0, while the old screen remains fully opaque at a lower depth.

Parameters

duration:Number (default = 0.5)
 
ease:Object (default = NaN)
 
tweenProperties:Object (default = null)

Returns
Function

See also

createFadeOutEffect()method 
public static function createFadeOutEffect(duration:Number = 0.25, ease:Object, interruptBehavior:String):Function

Creates an effect function that fades out the target component by animating the alpha property from 1.0 to 0.0.

Parameters

duration:Number (default = 0.25)
 
ease:Object (default = NaN)
 
interruptBehavior:String (default = NaN)

Returns
Function

See also

createFadeOutTransition()method 
public static function createFadeOutTransition(duration:Number = 0.5, ease:Object, tweenProperties:Object = null):Function

Creates a transition function for a screen navigator that fades out the old screen by animating the alpha property from 1.0 to 0.0, while the new screen remains fully opaque at a lower depth.

Parameters

duration:Number (default = 0.5)
 
ease:Object (default = NaN)
 
tweenProperties:Object (default = null)

Returns
Function

See also

createFadeToEffect()method 
public static function createFadeToEffect(endAlpha:Number, duration:Number = 0.25, ease:Object, interruptBehavior:String):Function

Creates an effect function that fades the target component by animating the alpha property from its current value to a new value.

Parameters

endAlpha:Number
 
duration:Number (default = 0.25)
 
ease:Object (default = NaN)
 
interruptBehavior:String (default = NaN)

Returns
Function

See also