Return a Promise that resolves with value after the given number of animation frames have elapsed.
Example
awaitdelayAnimationFrames(5); // resolves with `undefined` after 5 animation frames awaitdelayAnimationFrames(5, 'done'); // resolves with 'done' after 5 animation frames
Return a Promise that resolves with
valueafter the given number of animationframeshave elapsed.Example