GSAP Flip Plugin Goes Free, Brings FLIP Performance to State Changes

Greensock released the GSAP Flip plugin as a free part of the 3.9 release. The plugin is built around FLIP, an animation concept designed to produce high-performance animations when elements change state.

As Ryan Mulligan explains in a blog post, FLIP — an acronym coined by Paul Lewis for First, Last, Invert, Play — is the technique the plugin harnesses so developers can transition elements between states effortlessly and smoothly.

Doing FLIP manually is possible but tricky, which makes it a natural fit for an animation library. The workflow the plugin enables is minimal:

  1. Get the current state
  2. Make your state changes
  3. Call Flip.from(state, options)

Mulligan used it to build an "add to cart" effect. The same approach also produced a "mini photo gallery" that rotates which image is displayed large on top — a use case that led to a separate post on cycling through classes on an HTML element.