0.3.0 • Published 6 years ago

@standard-library/galvo v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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
0.3.0

6 years ago

0.2.1

7 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago