Hotspot Curtain Stage
What it does
A pinned stage split into four scroll thresholds that fire timed steps instead of scrubbing (and reverse when scrolling back up): the product photo is replaced by the next one through a clip-path curtain from below, the feature card's text rolls vertically, and a hotspot with a spinning ring travels to a new detail of the photo while a dashed SVG leader line redraws every frame to keep it tied to the card.
How it's built
| Category | scroll |
|---|---|
| Tech | gsap, lenis |
| GSAP plugins | ScrollTrigger |
| Complexity | section |
| Performance cost | light |
| Mobile-safe | yes |
| Scroll | hijacks scrolling |
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.
# Hotspot Curtain Stage — threshold steps with a curtain photo swap and a travelling hotspot
## Goal
Build a full-viewport black stage that pins for three extra screens of scroll. The pinned scroll is split into four equal zones; crossing into a zone **fires** a step with its own duration (it is not scrubbed), and scrolling back up fires the same step in reverse. On the left, a tall product photo fills a frame that fades into the black on its right, top and bottom edges. On the right, a dark feature card (icon ring, title, one sentence). Over the photo, a hotspot (thin ring, a short arc spinning around it, a white core with a soft halo) sits on a specific detail, and a dashed SVG leader line runs from the edge of the ring to the card. At each step: the next photo is laid on top and revealed by a clip-path curtain rising from the bottom edge (from the top when going back), the card's text rolls vertically (new one up from below, old one out the top), and the hotspot, the line and the card all glide to the new step's positions together, the line being redrawn every frame so it stays attached. Four small bars bottom-right mark the active step in the accent colour. Below 768px nothing pins: each photo is followed by its card, stacked.
## Tech
Vanilla HTML/CSS/JS with ES module imports. `gsap` (npm) with `ScrollTrigger`, and `lenis` (npm). `gsap.registerPlugin(ScrollTrigger)`. `gsap.matchMedia()` for desktop vs 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** (card titles) and **Instrument Sans** (body).
…
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.