Function nextAnimationFrame

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

    Parameters

    • Optional cntr: number

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

    Returns Promise<number>

    Returns current time equivalent to performance.now().