1.1.5 • Published 8 years ago

raf-timer v1.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 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

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago