Web design techniques
Scrollytelling in web design
Scrollytelling tells a story step by step as you scroll. A chart, map or image stays fixed on screen while short passages of text scroll past, and the graphic changes to match each one. It’s popular with newsrooms, annual reports, product launches and case studies, because it lets people take in a complicated story one piece at a time.
A live example
Scroll inside the frame below. The chart stays put while the steps scroll past, and it updates as each step reaches the middle of the frame. Then switch to the common mistake and scroll again.
£120
Your weekend so far
Step 1 of 3
Get there by train
Return tickets for two come to £120. That’s the first part of the trip in place.
Step 2 of 3
Two nights in the old town
A hotel near the station adds £260, bringing the weekend to £380.
Step 3 of 3
Dinner on Saturday
A table for two adds £90. The whole weekend comes to £470.
Done well: the text is always on a solid card beside the graphic, every step makes sense on its own, the active step is highlighted, and the chart changes quickly when you reach it.
What makes scrollytelling work
A fixed graphic
A chart, map or image stays on screen while you scroll.
position: stickyShort steps
Each step is a short passage that makes one point.
min-height: 420pxChanges on scroll
The graphic updates as each step reaches the middle of the screen.
IntersectionObserverNormal scrolling
The page scrolls as usual. It never takes control of the scroll.
overflow-y: autoThe CSS
The layout is plain CSS with a sticky graphic. On a real page, use IntersectionObserver to mark the step in the middle of the screen, as in the commented script below. It’s far cheaper than checking positions on every scroll event, which is what the small demo above does to keep it self-contained.
/* Graphic on one side, steps on the other */
.story {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 40px;
}
.story-graphic {
position: sticky;
top: 0;
height: 100vh;
}
.story-step { min-height: 80vh; }
/* Text always sits on a solid card */
.story-step .card {
background: #ffffff;
border: 1px solid #d9d0bd;
border-radius: 16px;
padding: 24px;
}
.story-step.is-active .card { border-color: #1a1a1a; }
/* Phones: the graphic stays on top, the steps scroll under it */
@media (max-width: 760px) {
.story { grid-template-columns: 1fr; }
.story-graphic { height: auto; z-index: 1; background: #fbf7ef; }
}
/* JavaScript: mark the step in the middle of the screen
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) setStep(entry.target.dataset.step);
});
}, { rootMargin: "-45% 0px -45% 0px" });
document.querySelectorAll(".story-step").forEach((s) => observer.observe(s));
*/Tuning the values
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
| Step height | 60vh to 100vh | Shorter and the graphic changes too fast. Longer and people scroll through empty space. |
| Words per step | 20 to 60 | Long steps make people stop scrolling, so the graphic stops matching the text. |
| Graphic transitions | 300ms to 500ms | Slower and fast scrollers miss the change. |
| Number of steps | 3 to 10 | More than that and the story loses people. |
When it works
- Data stories, reports and explainers.
- Case studies and product launches.
- Anything with a sequence, such as a process, a timeline or a journey.
When to avoid it
- Simple messages that fit on one screen.
- Content people need to scan or come back to.
- Sites without the time to design the phone layout properly.
The golden rule
Tell the story, don’t hijack the scroll
The most common complaint about scrollytelling is scroll-jacking, where the page takes over scrolling, locks it or changes its speed. Good scrollytelling leaves scrolling alone and simply reacts to it.
Let people scroll normally
Never change scroll speed or lock the page while an animation plays.
Make every step stand on its own
Someone who scrolls fast, or uses a screen reader, should still get the whole story from the text.
Offer a static version
A simple version with the graphics in sequence helps people who prefer reduced motion, and works for printing and sharing.
Design the phone layout first
On phones the graphic has to share the screen with the text. Plan for that from the start.
What to check when you review a scrollytelling page
Scrollytelling pages combine layout, scripting and content, so they need checking on every device you can find.
.story1. Scroll-jacking
Check the page scrolls normally, at normal speed, with no locking or snapping.
.story-step .card2. Text on solid cards
Check text never sits directly on the graphic, especially on phones.
.story-step3. Each step makes sense alone
Read only the text. Check the story still makes sense without the graphic.
svg, canvas4. The graphic for screen readers
Check charts and maps have a text alternative, such as a table or a summary.
@media (prefers-reduced-motion)5. Reduced motion
Check the graphic changes without animation for people who prefer reduced motion.
@media (max-width: 760px)6. Phones
Check the graphic and text don’t overlap and the graphic is still readable.
.story-graphic7. Fast scrolling
Scroll quickly to the end. Check the graphic ends up in the right final state.
a[href^='#']8. Links into the story
Check links to a step in the middle of the story show the right graphic.
Reviewing with clients
Notes on exactly which step goes wrong
A scrollytelling bug usually only appears at one step, at one screen size. A note pinned to that step tells you where to look. With ClickNote, clients click directly on elements of the website and leave a note, without creating an account or installing a browser extension.
Send your client a review link for the page.
They click the step where the graphic and text stopped matching and say what they saw.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
On my phone the chart covers this text when I scroll.
mobile · Chrome on Android - 412 x 915
.st-step:nth-child(2) .st-cardReviewing a site in one of these styles?
Send your client a review link and they can click directly on elements of the website and leave a note, without creating an account or installing a browser extension. You get the selector, a screenshot and their device with every note.
14-day free trial. No card needed. See pricing.