Skip to content

Vizel API / core/src / vizelCancelAnimationFrame

Function: vizelCancelAnimationFrame()

ts
function vizelCancelAnimationFrame(id): void;

Defined in: packages/core/src/utils/raf.ts:41

Cancel a previously scheduled animation-frame callback. Becomes a no-op when the underlying API is unavailable or when the handle is the sentinel 0 returned by the SSR fallback path.

Parameters

ParameterType
idnumber | null

Returns

void

Released under the MIT License.