bacon.animationframe

Leverage requestAnimationFrame in Bacon.js way!

Usage no npm install needed!

<script type="module">
  import baconAnimationframe from 'https://cdn.skypack.dev/bacon.animationframe';
</script>

README

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 indefinitely 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