DEPRECATED in favor of raf
.
QanimationFrame
A simple Promise wrapper for requestAnimationFrame
based on Q.
This library intends to promisify requestAnimationFrame.
Checkout the Annotated Source Code
Usage
QanimationFrame
is a function which takes a function and returns a promise containing it's return value (after one frame).
QanimationFrame(f: function) => DOM.Element
Basic example
var elt = document;eltinnerHTML = "Hello world";windowdocumentbody; var doSomething = ; doSomething;
Installation
via npm.
npm install qanimationframe
via bower
bower install qanimationframe
Supported browsers
All browsers are supported (including IE).