Function runAnimation

  • Runs the animation frames and triggers corresponding handler callbacks.

    Type Parameters

    Parameters

    • animation: T

      The animation to run.

    • handler: Partial<AnimationHandler<T>> | ((animation: T, fraction: number, percent: number) => void)

      The handler that is triggered when the animation state changes.

    • Optionalsignal: AbortSignal

      The signal that cancels the animation.

    Returns void