Javascript API
interfaces
Appeareffect

Interface: AppearEffect

Hierarchy

Properties

animationPreset

animationPreset: "fade" | "slide-in" | "scale-in" | "custom"

The preset animation for the effect. Possible values are: 'fade', 'slide-in', 'scale-in', 'custom'.


delay

delay: number

The delay before starting the animation in seconds.


duration

duration: number

The duration of the animation in seconds.


id

Readonly id: number

Every Effect is assigned a unique numerical id that cannot be changed.

Inherited from

Effect.id


replay

replay: boolean

Indicates whether the effect should replay when triggered again.


scaleFrom

scaleFrom: number

The scale value to start the animation from.


threshold

threshold: number | "any" | "half" | "all"

The preset threshold percentage value for triggering the effect. Possible values are: 'any', 'half', 'all', number between 0 and 1.0.


trigger

trigger: "none" | "inview" | "onload" | "onscroll" | "onhover" | "onclick" | "onpressrelease"

The trigger event for the effect. Possible values are: 'inview', 'onload', 'onscroll', 'onhover', 'onclick', 'onpressrelease', 'none'.

Methods

pause

pause(): void

Pause the animation.

Returns

void


play

play(): void

Play the animation.

Returns

void


stop

stop(): void

Stop the animation.

Returns

void