new 'AnimationFrame'()
Animation Frame
This is a polyfill for the requestAnimationFrame and cancelAnimationFrame methods.
- Source:
- See:
Methods
-
<static> cancel(Requested)
-
Cancels an animation frame.
Parameters:
Name Type Description Requested
number animation frame id. -
<static> request(callback) → {number}
-
Requests an animation frame.
Parameters:
Name Type Description callback
function Returns:
Requested animation frame id.- Type
- number