2.1.0 • Published 8 months ago
@ewizardjs/state-iterator v2.1.0
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');
}
}