Skip to main content

scheduleAnimation

Calls the supplied function using a double animation frame request.

tip

Use this function if you need to be sure all pending DOM reads and writes are performed.

Signature

scheduleAnimation(
fn: ((...arguments: any[]) => void) | undefined,
...arguments: any[]
): void

Parameters

NameTypeOptionalDescription
fn((...arguments: any[]) => void) | undefinedNoSpecifies the function to execute.
argumentsany[]YesOptional arguments which should be passed to the callee.