Skip to content

IDeclaredAnimation

Type interfaceSince 5.20.8

An animation described as data, for the animations setting.

Sources

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

Properties

delay

Type undefined | numberDefault 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 | stringDefault "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 | numberDefault 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 | trueDefault false

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