• Request an animation frame to run, with the same features as requestAnimationFrameMM but automatically stops if the user has closed the window. The token returned may correspond to either an AnimationFrame or a Timeout, so to cancel it, you must use cancelFrame.

    Parameters

    • callback: any

      Callback to execute.

    Returns number

    AnimationFrame/Timeout token.

    Method

    requestFrame