Capítulo 245 de 411

Chapter 245: Flip.to()

Core Idea

Identical to Flip.from() but inverted — animates from the current state to the provided FlipState instead of from it.

Anti-patterns

  • Using Flip.to() when Flip.from() would do: at the end of a to() animation, offsets are still applied (not removed), so if inline styles get cleared afterward the element can visibly jump. Flip.from() ends by removing offsets, which is almost always the safer default.

Connects To

  • Flip.from(): the recommended default direction for FLIP animations; see that chapter for full option details (identical API, just inverted).