window.requestanimationframe

1.0.1 • Public • Published

requestAnimationFrame polyfill

This is designed to be run in a browser and it depends on there being a document. It does not work in a Node.js or worker environment.

To use the requestAnimationFrame polyfill, just drop a single JavaScript file into your page:

<script src="requestanimationframe.js"></script>

or load as the Node.js module:

require('window.requestanimationframe');

Download the latest requestAnimationFrame polyfill from GitHub.

npm

npm install window.requestanimationframe

Bower

bower install window.requestanimationframe

Dependencies

The requestAnimationFrame polyfill requieres Date.now.

License

The requestAnimationFrame polyfill is released under the MIT license.

Package Sidebar

Install

npm i window.requestanimationframe

Weekly Downloads

287

Version

1.0.1

License

MIT

Last publish

Collaborators

  • octane
  • monolithed
  • gobwas