Skip to content
MikhailTymchukDX edited this page Dec 1, 2016 · 2 revisions

FadeInAnimation (inherits FadeAnimation)

The FadeInAnimation will fade the target in by moving from hidden to visible. It starts the animation the target's current opacity.

Client methods

Name Description
constructor(target, duration, fps, minimumOpacity, maximumOpacity, forceLayoutInIE)
onStart() The onStart method is called just before the animation is played each time.

Client methods

constructor(target, duration, fps, minimumOpacity, maximumOpacity, forceLayoutInIE)

Params:

  • target

    • Type: Object
    • Description: Target of the animation.
  • duration

    • Type: Number
    • Description: Length of the animation in seconds. The default is 1.
  • fps

    • Type: Number
    • Description: Number of steps per second. The default is 25.
  • minimumOpacity

    • Type: Number
    • Description: Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0.
  • maximumOpacity

    • Type: Number
    • Description: Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1.
  • forceLayoutInIE

    • Type: Boolean
    • Description: whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its background color (the latter is required in case the user has ClearType enabled). The default value is true. This is obviously ignored when working in other browsers.

onStart()

The onStart method is called just before the animation is played each time.

Clone this wiki locally