request-polyfilled-animation-frame

0.0.3 • Public • Published

request-polyfilled-animation-frame

travis npm downloads js-standard-style

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

Package Sidebar

Install

npm i request-polyfilled-animation-frame

Weekly Downloads

0

Version

0.0.3

License

MPL-2.0

Last publish

Collaborators

  • gozala