animate is a small wrapper around requestAnimationFrame that adds a frame rate constraint. It also provides simple
resume methods. The code is based on this blog article.
Older browsers might require a polyfill for Function.prototype.bind.
$ npm install animate
var animate =// Run the frame 24 times a second.var animation =animationanimation