Skip to main content

Interface: AnimatedProperty

Defined in: animations/components/animation-component.ts:8

Represents the properties of an animated object.

Properties

duration

duration: number

Defined in: animations/components/animation-component.ts:30

The duration of the animation in milliseconds.


easing()?

optional easing: (t) => number

Defined in: animations/components/animation-component.ts:42

The easing function to use for the animation.

Parameters

t

number

Returns

number

Default

linear

elapsed?

optional elapsed: number

Defined in: animations/components/animation-component.ts:25

The elapsed time of the animation.

Default

0

endValue?

optional endValue: number

Defined in: animations/components/animation-component.ts:19

The ending value of the animation.

Default

1

finishedCallback()?

optional finishedCallback: () => void

Defined in: animations/components/animation-component.ts:59

The callback function to call when the animation is finished.

Returns

void


loop?

optional loop: LoopMode

Defined in: animations/components/animation-component.ts:48

The loop mode of the animation.

Default

'none'

loopCount?

optional loopCount: number

Defined in: animations/components/animation-component.ts:54

The number of times the animation should loop. -1 means that it will loop indefinitely.

Default

-1

startValue?

optional startValue: number

Defined in: animations/components/animation-component.ts:13

The starting value of the animation.

Default

0

updateCallback()

updateCallback: (value) => void

Defined in: animations/components/animation-component.ts:36

The callback function to update the animated value.

Parameters

value

number

The current value of the animation.

Returns

void