@ewizardjs/state-iterator

2.1.0 • Public • Published

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');
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ewizardjs/state-iterator

Weekly Downloads

8

Version

2.1.0

License

ISC

Unpacked Size

1.39 MB

Total Files

5

Last publish

Collaborators

  • serhii_but
  • alexbelov
  • v.kobyletskiy
  • m.polevchuk
  • b.hryhoriev
  • ewizardjs-team
  • vasylshylov