class Reactive · Animation

RvgAlongOptions

Options for Animate.pin.along: where on the route the pin starts and ends.

Ratios of the route length (0 = its first point, 1 = its last). With from > to the pin moves backwards and faces backwards.

Properties

easingoptional

easing?: (t: number) => number

The easing in time (default: ease in and out).

fromoptional

from?: number

The start position (default 0).

onCompleteoptional

onComplete?: () => void

Callback invoked once when the pin has arrived.

tooptional

to?: number

The end position (default 1).