async-raf
Get async animation frame context
Install
npm install --save async-raf
Why?
When you want to get a value from requestAnimationFrame, instead of:
const area = await { window;};
You can use AsynRAF:
const area = await ;
Usage
// All callbacks will be execute inside `requestAnimationFrame()` ; // OR resolve it yourself; // OR use async callback;