TweenOptions: QuickTweenOptions & {
    delay?: number;
    strategy?: "cancel" | "cancelAll" | "exclusive";
    transformOrigin?: TransformOrigin;
}

Defines the tweening options.

Type declaration

  • Optionaldelay?: number

    Delay in seconds before animation starts; default: 0

  • Optionalstrategy?: "cancel" | "cancelAll" | "exclusive"

    Defines the scheduling strategy for handling new animations when an existing animation is already scheduled for the same target.

    - `cancel`: Cancels any non `quickTo` pending and ongoing animations on the same target and schedules the new
    animation immediately. This option ensures that the new animation takes precedence by clearing any existing
    animations.

    - `cancelAll`: Cancels _all_ pending and ongoing animations on the same target and schedules the new animation
    immediately. This option ensures that the new animation takes precedence by clearing any existing animations.

    - `exclusive`: Only schedules the new animation if there are no other animations currently scheduled for the
    same target. This option avoids animation conflicts by ensuring that only one animation can run at a time.
  • OptionaltransformOrigin?: TransformOrigin

    A transform origin to apply for the animation. The initial transform origin is reset when the animation finishes.