Vizel API / core/src / vizelRequestAnimationFrame
Function: vizelRequestAnimationFrame()
ts
function vizelRequestAnimationFrame(callback): number;Defined in: packages/core/src/utils/raf.ts:26
Schedule callback for the next animation frame, or — when the environment does not implement rAF — for the next microtask. Returns a numeric handle that vizelCancelAnimationFrame accepts.
Parameters
| Parameter | Type |
|---|---|
callback | () => void |
Returns
number