class Reactive · Animation
RvgIntegerAnimator
Animator for reactive integer values.
Accessed via Animate.Int. Supports eased tweens, continuous follow, deferred set, and immediate
snap operations on reactive Integer. Interpolation rounds to the nearest integer each frame,
producing discrete stepping that is useful for counters, score tickers, page indices, and as the
backbone of string animations.
Methods
eased
eased(refObj: Integer, to: number, duration: number, options?: RvgEasedOptions | null): RvgAnimationSmoothly interpolates the value from its current state to to over the given duration,
rounding to the nearest integer each frame.
refObj- The reactive
Integerto animate. to- The target integer value.
duration- Animation duration in milliseconds.
optionsoptional- Optional
RvgEasedOptionscontrolling the easing curve, completion tolerance, and anonCompletecallback.
Returns The running animation: to cancel it or to wait for it.
follow
follow(refObj: Integer, to: number, options?: RvgFollowOptions | null): RvgAnimationContinuously moves the value toward to each frame using an exponential decay, rounding to
the nearest integer at each step.
refObj- The reactive
Integerto animate. to- The target integer value to follow.
optionsoptional- Optional
RvgFollowOptionscontrolling the follow alpha and snap tolerance.
Returns The running animation: to cancel it or to wait for it.
set
set(refObj: Integer, value: number, delay: number, options?: RvgSetOptions | null): RvgAnimationSchedules an assignment of value after the given delay, with no interpolation.
refObj- The reactive
Integerto animate. value- The value to assign when the delay elapses.
delay- Delay in milliseconds before the assignment occurs.
optionsoptional- Optional
RvgSetOptions— currently supports anonCompletecallback invoked after the assignment.
Returns The running animation: to cancel it or to wait for it.
