class Reactive · Animation

RvgFollowOptions

Options for follow (spring/damped) animations.

A follow animation continuously moves a value toward a target each frame, producing a smooth, lag-based pursuit effect without a fixed duration.

Properties

alphaoptional

alpha?: number

The interpolation factor applied each frame, in the range (0, 1].

Higher values produce a snappier follow; lower values produce more lag. When null the system default alpha is used.

onCompleteoptional

onComplete?: () => void

Callback invoked when the follower has caught up with the target (within tolerance).

A follow that is called again for a moved target runs again and calls it again when it arrives. It is not called when the follow is cancelled, and never if the target keeps moving faster than the follower converges.

toleranceoptional

tolerance?: number

Distance threshold below which the follower is snapped to the target and the animation is stopped.

When null the system default tolerance is used.