1.0.0 • Published 10 years ago

bloody-animationframe v1.0.0

Weekly downloads
286
License
MIT
Repository
github
Last release
10 years ago

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.

1.0.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago