1.1.5 • Published 9 years ago

raf-timer v1.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

raf-timer

An abstraction around requestionAnimationFrame.

The purposed of this library is to provide a thin wrapper around requestionAnimationFrame. It provides a polyfill as well as, essentially, a memoization of the callback.

API

class Timer()

Instantiates a Timer class.

Timer.nextFrame(callback)

Tells the Timer to schedule the specified callback for execution the next time an animation frame event fire.

Timer.cancelFrame()

Tells the Timer to cancel a scheduled callback.

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago