Skip to content

AnimationOptions

Type interface

Animation options.

More info: Animations

Sources

AnimationOptions is an interface: it describes a shape of data and is not imported on its own.

Properties

duration

Type number

Duration in milliseconds. 0 sets the value at once.

easing

Type $ease.Easing

Easing function. Linear if not set.

More info: Animations: easing functions

from

Type Value

Value to start from. The current value if not set.

key

Type Key

The setting to animate.

loops

Type undefined | number

How many times to play the animation; Infinity plays it forever.

Plays once if not set.

to

Type Value

Value to animate to.