Canvas Toolkit
← Class index

CSequentialAnimationGroup

Animation · extends CAnimationGroup

Runs members in insertion order. Duration is the sum of member durations. Only the active member plays. Completed values are retained; future members do not write to their targets until reached. All elapsed time comes from the group's clock, including frame overshoot into subsequent members.

import { CSequentialAnimationGroup } from "canvas-toolkit-lib";

Declared members

readonly currentAnimationChanged: CSignal<[CAbstractAnimation | null]>;
duration(): number;
addAnimation(animation: CAbstractAnimation): void;
currentAnimation(): CAbstractAnimation | null;
applyCurrentValue(): void;
start(): void;
stop(): void;
setCurrentTime(time: number): void;
setExternalClock(external: boolean): void;
protected updateAnimations(): void;
destroy(): void;
protected updateCurrentLoop(_loop: number, _previous: number): void;
protected updateState(state: CAnimationState, previous: CAnimationState): void;
protected updateCurrentTime(time: number): void;