class Reactive · Animation

RvgRepeatOptions

Options for Animate.progress.repeat.

All fields are optional.

Properties

alternateoptional

alternate?: boolean

When true, every second cycle runs backwards (from 1 to 0), so the animation goes back and forth.

easingoptional

easing?: (t: number) => number

The easing of each cycle (default: linear). Common choices are available on EasingFunctions.

onCompleteoptional

onComplete?: () => void

Callback invoked once after the last cycle; never for an animation without times.

timesoptional

times?: number

How many cycles to run, at least 1 (default: until the animation is cancelled).