pronotron-tech-art-suite
    Preparing search index...

    Type Alias AnimationOption

    AnimationOption: RequireAtLeastOne<CallbackOption> & {
        autoPause: boolean;
        delay?: number;
        duration: number;
        id: AnimationClientID;
    }

    Describes the configuration of an animation instance.

    Type Declaration

    • autoPause: boolean

      Whether the animation should pause when screen is unfocused. true → pauses when unfocused false → continues ticking

    • Optionaldelay?: number

      Optional delay before animation start, in seconds.

    • duration: number

      Animation duration in seconds.

    • id: AnimationClientID

      Unique client-provided identifier. Adding an animation with the same ID forcibly finishes the previous one.