Get the Newsletter

requestAnimationFrame

A Method

requestAnimationFrame(callback: any): number

Registers a function to call when the system is ready to update (repaint) the display.

Parameters

callback: any
The function to call.

Returns

A long integer value, the request id, that uniquely identifies the entry in the callback list.