Skip to content

Documentation / @ripl/core / createFrameBuffer

Function: createFrameBuffer()

createFrameBuffer(): (callback) => void

Defined in: packages/core/src/animation/utilities.ts:10

Creates a debounced requestAnimationFrame wrapper that cancels any pending frame before scheduling a new one.

Returns

(callback) => void