SC.01LiveFood & beverage
MANJARI — Mango Juice Scroll Story
Sunlight, bottled — a cinematic WebGL scroll story built from AI images, with no video.
A scroll story ties a narrative to the scrollbar: each scroll step moves the camera, swaps the scene or reveals the next line of copy, and scrolling back rewinds it. Every template here is built this way, as a static Next.js site with the full source and the AI prompts behind every scene.
SC.01LiveFood & beverage
Sunlight, bottled — a cinematic WebGL scroll story built from AI images, with no video.
SC.02Live
SC.03LiveApp Launch
A cinematic scroll-story landing page for mobile apps: fall from orbit to a phone in hand, one scroll at a time.
A scroll story is a function of a single value between 0 and 1. That value says how far the visitor is through the story section, and every visual reads from it: which frame to draw, where the camera sits, how opaque a caption is. Because the input is position rather than time, scrolling back simply feeds a smaller number in, and the story rewinds exactly.
The usual layout is a tall wrapper with a sticky stage inside it. The wrapper supplies the scroll distance; the stage stays fixed to the viewport while the wrapper moves past.
.story { position: relative; height: 400vh; } /* scroll distance */
.story__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }export function storyProgress(section: HTMLElement): number {
const rect = section.getBoundingClientRect();
const distance = section.offsetHeight - window.innerHeight;
if (distance <= 0) return 0;
return Math.min(1, Math.max(0, -rect.top / distance));
}Read it inside a requestAnimationFrame callback rather than doing heavy work in the scroll handler itself. Libraries such as GSAP ScrollTrigger do the same measurement for you and add pinning, start and end markers and refresh on resize; see the GSAP ScrollTrigger templates.
A story with one long tween feels like a slideshow. Splitting progress into chapters gives each beat its own range, its own copy and its own easing. Orbitly, Zelvo and MANJARI each use four hero chapters: Orbitly goes from orbit to a phone in hand, Zelvo rolls coins in, fills jars, opens the vault and lands a phone, and MANJARI flies through an orchard into a mango that bursts into juice.
| Chapter | Progress range | What the code does |
|---|---|---|
| 1. Establish | 0.00 to 0.25 | Wide shot, headline fades in over the first 5% |
| 2. Approach | 0.25 to 0.50 | Camera moves in, first caption swaps |
| 3. Reveal | 0.50 to 0.80 | The product or key moment, longest range |
| 4. Land | 0.80 to 1.00 | Settle, show the call to action, release the pin |
Map global progress to a local 0 to 1 inside each chapter with (p - start) / (end - start), clamped. Orbitly takes this further with per-clip scroll weighting, so fast shots in the footage never rush past the reader.
The progress value is the same in every scroll story. What changes is what draws the picture.
| Renderer | How progress is used | Template here |
|---|---|---|
| Image sequence on canvas | Picks a frame index and draws it | Kestra (443 frames), Orbitly (691 frames) |
| Real-time three.js | Drives the camera, objects and shaders | MANJARI, Zelvo |
| Hybrid | Frames underneath, a WebGL layer on top | Kestra (ink-drawing shader), Orbitly (light layer) |
Footage gives you photoreal camera moves that would be expensive to render live. Real-time 3D gives you interaction and resolution independence. The trade-offs are covered in detail on the image sequence and three.js pages.
Raw scroll input is jumpy on a mouse wheel. The templates use Lenis for smooth scrolling, and MANJARI adds frame-rate-independent smoothing so the motion feels the same on a 60 Hz laptop and a 120 Hz phone. Smoothing must stay a presentation layer: the story state is still a pure function of progress, which is why scrolling back rewinds exactly.
A scroll story is a lot of motion, so the reduced-motion path is part of the build, not an afterthought. The prefers-reduced-motion media feature tells you when the visitor has asked for less motion. Every template here then swaps the motion for still imagery, and Kestra, Orbitly and Zelvo also turn smooth scrolling off; MANJARI and Zelvo also keep working if WebGL is unavailable.
export const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;A scroll story works when the page has a single arc: a building rising, an app landing in a hand, a mango becoming juice. The visitor controls the pace, so a complex idea lands in order.
Property developers, D2C drinks and fintech brands sell on trust and craft. A cinematic hero signals investment before a word is read.
Chapters pace the message: one claim per beat, each tied to a visual. That is easier to follow than a wall of feature cards.
If visitors arrive to scan, search or compare, a pinned hero that takes several screens of scrolling gets in the way. Use a conventional layout and keep motion small.
Without a clear subject and camera move, scroll animation becomes decoration. Plan the beats first; if you cannot sketch four chapters, a static hero is the better choice.
The questions people ask most about this topic.
Scrollytelling is storytelling driven by scroll position. Visuals and copy change as the visitor scrolls, and scrolling back reverses them. It is common in long-form journalism and premium product pages.
No. A scroll-triggered animation starts when an element enters the viewport and then plays on its own clock. A scroll story is scrubbed: its progress is tied to the scrollbar, so the visitor sets the speed and can reverse it.
Kestra and Orbitly use footage, but as an image sequence drawn on a canvas, not a playing video. MANJARI and Zelvo use no video at all; their heroes are rendered live in three.js.
Every template here respects prefers-reduced-motion and swaps the animated hero for still imagery. MANJARI and Zelvo also keep working when WebGL is unavailable.
Yes. The hero story lives in a config file in every template, separate from the components, so you can edit its copy without touching rendering code. In MANJARI that file also holds the story timing.