Skip to content

IAnimationOptions

Type interface

Defines interface for animation options.

Sources

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

Inheritance

IAnimationOptions does not extend any other symbol.

IAnimationOptions is extended by IPercentAnimationOptions, IColorAnimationOptions.

Properties

childObject

Type object

If current values should be taken from different object than the target element of the animation, this property should be set to that object.

dummyData

Type any

sometimes we need to pass some dummy data in animationOptions

from

Type IAnimationOption

An initial value to animate from.

If omitted, the source value will be current value.

property

Type any

Property name to animate.

to

Type IAnimationOption

A target value to animate from.

Methods

updateMethod(progress: number,
from: IAnimationOption,
to: IAnimationOption
)

Returns IAnimationOption

A method/function reference that will be called to for updating the property value.