request-polyfilled-animation-frame
requestAnimationFrame
/ cancelAnimationFrame
polyfill for environments (like node) that do not have it.
Usage
In addition package also exports it's internal polyfill implementations:
Library internally uses polyfill for performance.now
and also exports it as now
so that timing is consistent across all users.
Install
npm install request-polyfilled-animation-frame