Skip to content
motionprompts motionprompts

Pinned Line Swap Manifesto

GSAP animation component · Published 2026-11-21 · by vanguardia.dev

Open live demo ↗ Download source

What it does

A section pinned for 350% of the viewport with one scrubbed ScrollTrigger timeline: four centred statements take turns, each line leaving upward and the next entering from below through its own mask without overlapping, over a full-bleed photo that slowly zooms from 1 to 1.15. A frosted glass card on the side steps down with each statement while its notes roll vertically inside it, and a progress bar fills along the pin.

How it's built

Categoryscroll
Techgsap, lenis
GSAP pluginsScrollTrigger
Complexitysection
Performance costlight
Mobile-safeyes
Scrollhijacks scrolling

scroll pin scrub text-reveal line-mask manifesto zoom glass-card progress-bar lenis

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.

# Pinned Line Swap Manifesto — four statements swap line by line over a zooming photo
## Goal
Build a full-viewport section that pins for 3.5 extra screens of scroll. Behind everything, a full-bleed photo under a dark veil zooms slowly from 1 to 1.15 across the whole pin. In the centre, four short statements (2–3 lines each) occupy the same box and take turns: at each handover the outgoing statement leaves upward line by line through each line's own mask, and only after it has gone does the incoming one rise into its masks from below, so two statements are never on screen together. On the right, a fixed-size frosted glass card holds four notes in the same spot (overflow hidden): at each handover the card steps down a notch and its note rolls vertically (old one out the top, new one in from the bottom, simultaneously, so the card is never empty), while a 1px accent bar at its bottom fills from 0 to 100% over the whole pin. Everything is tied to scroll with a single scrubbed timeline. Below 768px nothing pins: statements and notes stack and each block rises once when it appears.
## Tech
Vanilla HTML/CSS/JS with ES module imports. `gsap` (npm) with `ScrollTrigger`, and `lenis` (npm). `gsap.registerPlugin(ScrollTrigger)`. `gsap.matchMedia()` splits desktop and mobile.
```js
const lenis = new Lenis({ duration: 1.1, easing: (t) => 1 - Math.pow(1 - t, 3.4) });
lenis.on("scroll", ScrollTrigger.update);
gsap.ticker.add((time) => lenis.raf(time * 1000));
gsap.ticker.lagSmoothing(0);
```
Fonts, self-hosted (no CDN): **Bricolage Grotesque** (variable, statements, `font-variation-settings: "opsz" 60`) and **Instrument Sans** (notes).
…

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.