Category: Scroll storytelling · Interaction: scroll-scrubbed reveal and zoom · Stack: any (GSAP ScrollTrigger recommended)
Prompt
Build a long-scroll storytelling page. Huge chapter titles scroll past a fixed, centred "window" that shows one image per chapter. The image transitions are wipes tied directly to scroll position.
Look and feel
- Dark theme of my choice (for example deep navy
#0d1321with soft white text). One condensed sans-serif for titles and a small monospaced face for captions. - Chapter titles are enormous (around 12–16vw), uppercase and centred. They scroll in normal flow with lots of empty space between them, so each chapter has room.
- A short fixed caption (two or three lines of my copy) stays centred behind the window for the whole page.
- The window is a portrait frame in the middle of the screen (about 5:7, max 520px wide, scaling down on mobile).
Behaviour
- For each chapter, as its title reaches the centre of the viewport, the window's image wipes open from the bottom edge upward (use
clip-path). - While the chapter is in view, the image slowly zooms inside the frame (scale about 1 to 2.5), scrubbed to scroll with a gentle lag.
- When the next title approaches, the current image wipes closed toward the top edge as the next one opens from the bottom, so it reads like flipping through a stack.
- The final chapter ends with no image, leaving only the caption and the last title.
- Wipes should feel locked to the scroll wheel (very small scrub smoothing), while the zoom feels slightly softer.
Implementation notes
- Build the timelines once at load, not inside enter callbacks. Recalculate on resize.
- Keep the window above the titles in stacking order so titles pass behind the image edges.
- Use 5–7 chapters with my own titles and images.
Accessibility
- With
prefers-reduced-motion, swap the wipes for simple cross-fades and disable the zoom. - Give each image meaningful alt text and make sure the titles remain real headings.
Deliverable: HTML, CSS and JS (or one component), with the chapter list driven by a small data array.