flyd-onAnimationFrame editorconfig eslint travis-ci npm

Emits values on successive animation frames.

4 years after

flyd-onAnimationFrame

Travis npm David David

Emits values on successive animation frames.

Signature

Stream -> Stream

Usage

const stream = flyd.stream();
const onFrame = onAnimationFrame(stream);

flyd.map(function(x) {
  console.log('Time/Output', Date.now(), x);
}, onFrame);

[1, 2, 3, 4, 5]
  .forEach(n => stream(n));

// Time/Output 1434813866911 1
// Time/Output 1434813866927 2
// Time/Output 1434813866943 3
// Time/Output 1434813866961 4
// Time/Output 1434813866977 5

Top Contributors

ThomWright

Releases

-   v0.3.0 zip tar
-   v0.2.2 zip tar
-   v0.2.1 zip tar
-   v0.2.0 zip tar
-   v0.1.2 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar