Skip to content

Instantly share code, notes, and snippets.

@gordonbrander

gordonbrander/frame.js

Last active Mar 31, 2018
Embed
What would you like to do?
frame.js
// Promise for an animation frame.
// Tip: use with `await`.
export const frame = () => new Promise(requestAnimationFrame)
@charlesodili

This comment has been minimized.

Copy link

@charlesodili charlesodili commented Mar 31, 2018

Very interesting. Please, how would you use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.