class Reactive · Animation

RvgEasedOptions

Options for eased (tween) animations.

Pass an instance of this record to any Eased animator method to control how the interpolation curve behaves and to receive a notification when the tween finishes.

Properties

easingoptional

easing?: (t: number) => number

A custom easing function that maps a normalised progress value (0–1) to an output value (typically also 0–1).

Left out, the animation uses easeInOutCubic. Common choices are available on EasingFunctions.

onCompleteoptional

onComplete?: () => void

Callback invoked once when the animation reaches its target value.

staggeroptional

stagger?: number

For animations of many objects at once (morphAll, easedAll): the delay in milliseconds between the starts of consecutive objects.

The first object starts at once, the second after stagger, the third after twice that, and so on. onComplete is called once, when the last one has arrived.

toleranceoptional

tolerance?: number

The minimum change per frame below which the animation is considered complete and snapped to its target value.

Useful for preventing sub-pixel jitter at the end of a tween. When null the system default tolerance is used.