AnimatableFunction

Can be used inside the animate property to animate a certain property based on the value return from the this function.

Call signature

1
const value = func(progress, index)

Parameters

progress number

A number between 0 and 1 that defines how far along the animation is.

index: number

The index of the current element being animated inside staggering animations.

Returns

value any