Function nextAnimationFrame

  • Awaits requestAnimationFrame calls by the counter specified. This allows asynchronous applications for direct / inline style modification amongst other direct animation techniques.

    Parameters

    • Optionalcntr: number

      A positive integer greater than 0 for amount of requestAnimationFrames to wait.

    Returns Promise<number>

    Returns time of last requestAnimationFrame callback.