Skip to content

aninest-root / Animatable / updateAnimation

updateAnimation()

ts
function updateAnimation<Animating>(
   anim, 
   dt, 
   suppressListeners?): boolean;

Defined in: Animate/Animatable.ts:432

Moves the animation forward by a certain amount of time.

Type Parameters

Animating

Animating extends Animatable<unknown>

Parameters

anim

Animation<Animating>

The animation object

dt

number

The timestep to increment the animation by. Must be positive. If negative or zero and the interpolation function is not NO_INTERP then no-op.

suppressListeners?

whether to suppress beforeEnd and end listeners

end?

boolean

update?

boolean

Returns

boolean

true if the animation needs to be updated again