Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darius/requestAnimationFrame
Polyfill for requestAnimationFrame/cancelAnimationFrame
https://github.com/darius/requestAnimationFrame
Last synced: 4 months ago
JSON representation
Polyfill for requestAnimationFrame/cancelAnimationFrame
- Host: GitHub
- URL: https://github.com/darius/requestAnimationFrame
- Owner: darius
- License: mit
- Created: 2013-09-16T19:09:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T02:38:56.000Z (about 5 years ago)
- Last Synced: 2024-06-22T21:10:06.738Z (6 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 273
- Watchers: 15
- Forks: 62
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
requestAnimationFrame
=====================
> requestAnimationFrame polyfill by [Erik Möller](https://twitter.com/erikjmoller).Polyfill for
[requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame)
and cancelAnimationFrame. That is, load the included .js file to make those
functions work (more or less) even on older systems that do not natively supply
them.This version of the code is only lightly tested. It's provoked no
complaints since the initial checkin of 2013-9-16, but it hasn't been
deliberately tested on a zillion targets either.## Credits
Fixes from [Paul Irish](https://github.com/paulirish), [Tino Zijdel](https://twitter.com/tinozijdel), [Andrew Mao](https://github.com/mizzao), [Klemen Slavič](https://github.com/KrofDrakula), [Darius Bacon](https://github.com/darius)Adapted from https://gist.github.com/paulirish/1579671 which is derived from:
- http://paulirish.com/2011/requestanimationframe-for-smart-animating/
- http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating## To do
- Incorporate improvements from:
- http://stackoverflow.com/questions/13241314/up-to-date-polyfill-for-requestanimationframe
- https://gist.github.com/mrdoob/838785## Support
[Supported browsers](http://caniuse.com/requestanimationframe)## Contributing
Pull requests welcome.
Please respect the code style in place.## License
MIT License