bloody-animationframe

[![browser support](https://ci.testling.com/bloodyowl/animationframe.png) ](https://ci.testling.com/bloodyowl/animationframe)

Usage no npm install needed!

<script type="module">
  import bloodyAnimationframe from 'https://cdn.skypack.dev/bloody-animationframe';
</script>

README

animationframe

browser support

install

$ npm install bloody-animationframe

require

var af = require("bloody-animationframe")

api

af.requestAnimationFrame(fn) > id

executes fn on the next frame.

returns id identifier

af.next(fn) > id

alias for af.requestAnimationFrame

af.cancelAnimationFrame(id)

cancels the requestAnimationFrame that returned the given id.