bacon.animationframe

Use requestAnimationFrame as Bacon.js EventStream


Keywords
bacon.js, bacon, frp, functional, reactive, programming, animation, requestanimationframe, animationframe, time, polling, scheduler
Install
bower install bacon.animationframe

Documentation

bacon.animationFrame

Leverage requestAnimationFrame in Bacon.js way!

Methods

Bacon.scheduleAnimationFrame

Returns an EventStream with requestID values produced on each animationFrame tick.

Bacon.repeatedlyOnFrame(values, divisor)

Repeats given elements infinitely on nth frame (divisor parameter, default value is 1). Similar to Bacon.repeatedly, but uses requestAnimationFrame instead of setTimeout/setInterval

Install

For node.js users

npm install bacon.animationframe

For bower users:

bower install bacon.animationframe