Object

FadeInAnimation

The animation whereby a component fades into view.

Properties

type
string
(Required)

This animation always has the type fade_in.

initialAlpha
number

The initial transparency of the component (and the animation). Set initialAlpha to a value between 0 (completely transparent) and 1 (completely visible).

userControllable
boolean

Indicates whether the animation is controlled by user action (true) like scrolling, or happens when the component is within the visible area of the document (false).

Discussion

With this animation type the component fades in as it enters the user’s view. The initial transparency (alpha value) of the component is configurable. A FadeInAnimation with the userControllable property set to true is shown in this video.

Example

{ "components": [ { "role": "heading1", "text": "2. Unbeatable Heat" }, { "role": "figure", "URL": "bundle://figure.jpg", "animation": { "type": "fade_in", "userControllable": false, "initialAlpha": 0 } } ]}

Relationships

Inherits From

See Also

Animations

About Component Animations

Learn how to affect the way in which components come into view.

object ComponentAnimation

Properties shared by all the animations.

object AppearAnimation

The animation whereby a component appears on the screen.

object MoveInAnimation

The animation whereby a component moves in from the side of the screen.

object ScaleFadeAnimation

The animation in which a component scales up and fades into view.