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
Name | Type | Optional | Description |
---|---|---|---|
fn | ((...arguments: any[]) => void) | undefined | No | Specifies the function to execute. |
arguments | any[] | Yes | Optional arguments which should be passed to the callee. |