Capítulo 241 de 411

Chapter 241: Flip.getState()

Core Idea

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.

Reference Tables

ParameterTypeDescription
targetsString | Element | Arrayelements to capture
varsObject (optional)props, simple, kill, batch

Returns: a FlipState object, usable in Flip.from(), Flip.to(), Flip.fit().

Code Examples

const state = Flip.getState(".targets");

Connects To

  • Flip.from(), Flip.to(), Flip.fit(): the methods this state feeds into.