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 state -
stateIterator
- return iterator for state
Usage
async function states() {
for await (const state of stateIterator()) {
console.log('state');
}
}