Capítulo 238 de 411
Coordinates multiple independent Flip animations (e.g. across separate components) so all getState() calls happen first, then all DOM changes, then all animations — preventing one component's state change from corrupting another's captured state.
| Parameter | Type | Description |
|---|---|---|
| id | String | unique id; returns the existing FlipBatch if one already exists for that id |
Returns: a FlipBatch instance.
let batch = Flip.batch("myBatch");
// each component registers an action, then:
batch.run(); // runs all getState -> setState -> animate in the correct order