0.0.3 • Published 8 years ago

request-polyfilled-animation-frame v0.0.3

Weekly downloads
5
License
MPL-2.0
Repository
github
Last release
8 years ago

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