FLIP animation technique
An animation trick: record an element's first position, move it to its last position, invert the difference with a transform, then play the transform back to zero.
In more detail
FLIP stands for First, Last, Invert, Play. It turns layout changes into cheap transform animations, and the View Transitions API now does much of this natively.
Related terms
- View Transitions API — A browser API that animates between two states of a page: it captures the old view, lets you update the DOM, then animates to the new view.
- CSS transform — The CSS property that moves, rotates, scales or skews an element without changing the layout around it.
Taught in
- Modern CSS Animations, Transitions And View Transitions API — Frontend Architecture & Web Platform