@standard-library/galvo

0.3.0 • Public • Published

galvo

Acts as a "higher order stream" which manages a collection of stuff with a single "active" item. You might use it to coordinate a slideshow.

Implemented using Kefir.js.

Installation

yarn add @standard-library/galvo

Usage

const items = ["a", "b", "c"];
const advance = K.interval(3000).take(3);
const slideshow = galvo({ advance }, items);

slideshow.current.log();
// => a---b---c---a
slideshow.previous.log();
// => ----a---b---c

Readme

Keywords

none

Package Sidebar

Install

npm i @standard-library/galvo

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

15.2 kB

Total Files

9

Last publish

Collaborators

  • standard-library