0.0.3 • Published 8 years ago
request-polyfilled-animation-frame v0.0.3
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