Technique · Scroll story

Scroll-story website templates, scrollytelling done properly

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.

Templates built this way (3)

How it works

Under the hood.

SC.01

Everything hangs off one number: scroll progress

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.csscss
.story { position: relative; height: 400vh; } /* scroll distance */
.story__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
progress.tsts
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.

SC.02

Chapters: splitting progress into beats

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.

An example chapter map. Give the reveal the most scroll so it never rushes past.
ChapterProgress rangeWhat the code does
1. Establish0.00 to 0.25Wide shot, headline fades in over the first 5%
2. Approach0.25 to 0.50Camera moves in, first caption swaps
3. Reveal0.50 to 0.80The product or key moment, longest range
4. Land0.80 to 1.00Settle, 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.

SC.03

Three ways to draw the picture

The progress value is the same in every scroll story. What changes is what draws the picture.

RendererHow progress is usedTemplate here
Image sequence on canvasPicks a frame index and draws itKestra (443 frames), Orbitly (691 frames)
Real-time three.jsDrives the camera, objects and shadersMANJARI, Zelvo
HybridFrames underneath, a WebGL layer on topKestra (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.

SC.04

Smoothing, reduced motion and fallbacks

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.

motion.tsts
export const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
When to use it

Right for the job, or not.

A launch or product page with one story to tell

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.

A brand that needs to feel premium in the first five seconds

Property developers, D2C drinks and fintech brands sell on trust and craft. A cinematic hero signals investment before a word is read.

Copy that benefits from being revealed in sequence

Chapters pace the message: one claim per beat, each tied to a visual. That is easier to follow than a wall of feature cards.

Not for documentation, dashboards or dense comparison pages

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.

Not when the story has no visual spine

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.

FAQ

Questions, answered.

The questions people ask most about this topic.

01What is scrollytelling?

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.

02Is a scroll story the same as a scroll-triggered animation?

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.

03Do these templates use video?

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.

04How do scroll stories handle reduced motion?

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.

05Can I change the story timing?

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.

Start from a finished scroll story.