Licence
MPL-2.0
Version
0.0.3
Deps
1
Vulns
0
Weekly
0
request-polyfilled-animation-frame
requestAnimationFrame / cancelAnimationFrame polyfill for environments (like node) that do not have it.
Usage
import {requestAnimationFrame, cancelAnimationFrame} from 'request-polyfilled-animation-frame'
In addition package also exports it's internal polyfill implementations:
import {requestPolyfilledAnimationFrame, cancelPolyfilledAnimationFrame} from 'request-polyfilled-animation-frame'
Library internally uses polyfill for performance.now and also exports it as now so that timing is consistent across all users.
import {now} from 'request-polyfilled-animation-frame'
Install
npm install request-polyfilled-animation-frame