Scroll inside the frame. The shot stays paused.
The prompt
Build four chapters stacked down the page. ## Look Each chapter is its own 100vh panel in document order: Brief, Motion, Prompt, Ship. Type is clamp(36px, 6vw, 72px), #f2f2f7 on #08080d. A fixed index at the top left reads 01 / 04 through 04 / 04. ## Behavior Do not pin a horizontal track and do not translateX. Include function mountScroll. On scroll, set the index from whichever article has crossed 55% of the viewport height. Honor prefers-reduced-motion by skipping the scroll listener and leaving 01 / 04. ## Design tokens - Text #f2f2f7; page #08080d; index #8a8a99. ## Motion - The page scrolls vertically. Chapters do not slide sideways. ## Constraints - Single self-contained HTML file. No libraries. - Readable at 390px width with no horizontal page scroll
The code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
background: #08080d; color: #f2f2f7; font-family: Inter, system-ui, sans-serif;
min-height: 100vh; overflow-x: hidden;
}
.hint { position: fixed; left: 16px; top: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a99; }
article { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
h2 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.05em; }
@media (max-width: 420px) {
.hint { font-size: 10px; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
</style>
</head>
<body>
<p class="hint" id="chapter">01 / 04</p>
<main>
<article><h2>Brief</h2></article>
<article><h2>Motion</h2></article>
<article><h2>Prompt</h2></article>
<article><h2>Ship</h2></article>
</main>
<script>
var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
function mountScroll() {
var articles = [].slice.call(document.querySelectorAll("article"));
var label = document.getElementById("chapter");
function read() {
var current = 0;
var i;
for (i = 0; i < articles.length; i++) {
if (articles[i].getBoundingClientRect().top < window.innerHeight * 0.55) current = i;
}
var n = current + 1;
if (label) label.textContent = (n < 10 ? "0" : "") + n + " / 04";
}
read();
if (!reduce) window.addEventListener("scroll", read, { passive: true });
}
mountScroll();
</script>
</body>
</html>About this effect
Brief, Motion, Prompt, and Ship each take one viewport and follow in document order. Scroll down to read the next chapter. A small index tracks which chapter is in view. Built for case studies that should move downward.
Similar effects
Parallax Layers
Pinned dusk landscape where three SVG ridgelines drift at different speeds as you scroll.
Stacked Scroll Gallery
Vertical scroll lifts a column of cards into place, scrubbed to the scrollbar.
Scroll Reveal Cards
Grid cards fade up 40px into view with a buttery 0.08s stagger as you scroll.