IDeclaredAnimation

Type interface

An animation described as data, for the animations setting.

@since 5.20.8

Inheritance

IDeclaredAnimation does not extend any other symbol.

IDeclaredAnimation is not extended by any other symbol.

Properties

delay
#

Type undefined | number

Default 0

Milliseconds to wait before starting.

duration
#

Type number

Duration in milliseconds. With yoyo, one way.

ease
#

Type "in" | "out" | "inOut"

Default "in"

Which way the easing applies.

easing
#

Type undefined | string

Default "linear"

Easing by name: "linear", "quad", "cubic", "exp", "sine", "circle", "bounce" or "elastic".

from
#

Type any

Value to start from. Defaults to the current value.

key
#

Type string

Setting (or data item value, with target: "dataItem") to animate.

loops
#

Type undefined | number

Default 1

How many times to play it; 0 plays it forever.

target
#

Type "self" | "dataItem"

Default "self"

"self" animates a setting of the element; "dataItem" a value of the element's data item.

to
#

Type any

Value to animate to.

yoyo
#

Type undefined | false | true

Default false

Go back to from after reaching to, rather than jumping back.