2.1.0 • Published 8 months ago

@ewizardjs/state-iterator v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Slide state switcher

Provides API for switching across all possible slide states.

Targeted to be use with screen-shooter

Run

  1. Install dependencies: npm i

Use

Add script tag which links bundle.js file from this project.

Global API

  • animateContent - to animate content to the final state
  • stateIterator - return iterator for state

Usage

async function states() {
    for await (const state of stateIterator()) {
        console.log('state');
    }
}
2.1.0

8 months ago

2.0.1

11 months ago

2.0.0

11 months ago