Capítulo 241 de 411
Captures the current position/size/rotation/skew/opacity (and optionally other properties) of the target elements so they can be Flipped later — pure read, doesn't alter anything except forcing any in-progress Flip on those targets to complete first.
| Parameter | Type | Description |
|---|---|---|
| targets | String | Element | Array | elements to capture |
| vars | Object (optional) | props, simple, kill, batch |
Returns: a FlipState object, usable in Flip.from(), Flip.to(), Flip.fit().
const state = Flip.getState(".targets");