Skip to content
motionprompts motionprompts

We Go Again

GSAP animation component · Published 2026-07-27 · by vanguardia.dev

Open live demo ↗ Download source

What it does

A three-column documentary-studio film selector where a vertical thumbnail gallery on the right lets you click any item to swap the featured project. On click, GSAP animates the current title/copy/credits lines out (y:-60, power4.in, staggered) while the featured image scales up and collapses away; on completion the details are rebuilt, SplitType re-splits the copy into lines, and the new text (y:40→0, power4.out, stagger) plus image (scale 0→1, power4.out) animate in, while the full-screen blurred background crossfades between the two images.

How it's built

Categorygallery
Techgsap, split-type
Complexitypage
Performance costlight
Mobile-safeyes

gallery gsap split-type image-transition stagger text-reveal backdrop-blur editorial showcase

How it works

A three-column showcase for a creative studio. On the right, a slim frosted strip of tall thumbnails scrolls on its own. In the middle, the featured project: a title, a short paragraph, credits and a large image. Behind everything, the featured image is blown up and blurred into a soft wash of colour that tints the whole screen. Click a thumbnail and the current project leaves in one motion, text sliding up and out line by line while the image shrinks, rises and pushes in, then the new project arrives from below, text rising into place and the image growing up out of the bottom edge and settling.

The motion is GSAP without plugins, plus SplitType to break the paragraph into lines.

Lines behind masks

Every piece of text that animates sits inside its own mask: the title, the credits and each line of the paragraph. The paragraph is split into visual lines at runtime and each line is wrapped in a clipping box, with the text inside it free to move. When the text travels up or down it disappears at the edge of its box instead of fading, which is what gives the transition its printed, editorial feel.

Two phases chained by callbacks

The transition is two halves rather than one long timeline. The outgoing half accelerates away, with a small stagger so the lines leave one after another. The image does two things at once: its frame scales down and moves up, while the photograph inside the frame zooms in, so the picture seems to rush towards you as its window closes. When that half completes, the old details and image are removed from the page, the new ones are built from a data file, the new paragraph is split into lines, and the incoming half runs the same moves mirrored, decelerating into place. The blurred background is handled separately: a new image is slipped underneath the old one and the two crossfade across both halves.

A lock ignores clicks while a transition is running, and clicking the project that is already open does nothing.

Where it gets hard

Splitting text into lines only works once the text has its final width, and the new paragraph must be split after it has been added to the page, otherwise the line breaks are computed for the wrong layout. The other subtlety is the double motion on the image: animating the frame and the photograph inside it in opposite directions is what sells the push-in, and it needs the frame to clip its content.

Performance and mobile

The animated properties are transforms, so the transitions themselves are cheap. The expensive part is visual: a heavy blur over the whole screen and a frosted gallery panel both use backdrop filters, which can be costly on low-end phones; a pre-blurred image is a lighter alternative. Below tablet width the columns stack and the thumbnail strip becomes horizontal, so the same interaction works on touch.

Rebuild it with AI

This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.

# We Go Again — Click-to-Swap Project Showcase
## Goal
Build a full-viewport, three-column creative-agency showcase. The right column is a slim, internally-scrollable **vertical thumbnail gallery**; the wide middle column shows the currently featured project (big title, a paragraph of copy split into lines, credits, a large featured image); the left column holds the site nav + agency intro. Behind everything sits a **full-screen, heavily-blurred version of the featured image** as an ambient color wash. The star effect: **clicking any thumbnail runs a two-phase GSAP transition** — the current title/copy/credits lines slide **up and out** (staggered, accelerating) while the featured image **shrinks, rises and zooms**; then the details are rebuilt for the new project and the new text **rises in from below** while the new image **grows up from below and zooms back to normal** — and the blurred background **crossfades** between the two images the whole time.
## Tech
Vanilla HTML/CSS/JS with ES module imports, bundled by Vite. No framework.
- `gsap` (npm) — all motion. **No GSAP plugins, no ScrollTrigger.**
- `split-type` (npm, `SplitType`) — splits the copy paragraph into lines so each line can be masked/animated.
Import them as:
```js
import gsap from "gsap";
import SplitType from "split-type";
```
…

Premium prompt

Unlock this prompt, and every other one

From $99/year, or $139 once for lifetime access. Commercial license included.

See pricing Or start with the free set Already bought? Sign in

New components in your inbox

One email a week, only when new components ship, each with its live demo and prompt.