Return a Promise that resolves with value on the next animation frame.
value
await delayAnimationFrame(); // resolves with `undefined` on the next animation frameawait delayAnimationFrame('done'); // resolves with 'done' on the next animation frame Copy
await delayAnimationFrame(); // resolves with `undefined` on the next animation frameawait delayAnimationFrame('done'); // resolves with 'done' on the next animation frame
Return a Promise that resolves with
valueon the next animation frame.Example