@ewizardjs/state-iterator
v2.1.0
Published
Provides API for switching across all possible slide states.
Downloads
17
Keywords
Readme
Slide state switcher
Provides API for switching across all possible slide states.
Targeted to be use with screen-shooter
Run
- 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 statestateIterator
- return iterator for state
Usage
async function states() {
for await (const state of stateIterator()) {
console.log('state');
}
}