Scroll inside the frame. The shot stays paused.
The prompt
Build scroll-revealed manifesto lines. ## Look Five lines, clamp(24px, 4vw, 42px), tracking -0.04em, color #f2f2f7, on #08080d. Runway 240vh. ## Behavior Line i starts at progress i/5 and finishes 0.18 later. Opacity goes 0 to 1 and translateY goes 24px to 0. Include function mountScroll. ## Design tokens - Text #f2f2f7; page #08080d. ## Motion - Travel 24px. Window 0.18 of scroll progress. No timer. ## Constraints - Single self-contained HTML file. No libraries. - Honor prefers-reduced-motion: reduce by skipping the loop and leaving a readable static frame - 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: absolute; left: 16px; top: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a99; }
.runway { height: 240vh; display: grid; align-content: center; gap: 18px; padding: 10vh 8vw; } .ln { font-size: clamp(24px, 4vw, 42px); letter-spacing: -0.04em; }
@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>
<div class="runway"><p class="ln">See it move.</p><p class="ln">Read the prompt.</p><p class="ln">Paste it once.</p><p class="ln">Match the preview.</p><p class="ln">Ship the page.</p></div>
<script>
var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
function layout(p) {
document.querySelectorAll(".ln").forEach(function (line, i) {
var start = i / 5;
var local = Math.min(1, Math.max(0, (p - start) / 0.18));
line.style.opacity = String(local);
line.style.transform = "translateY(" + ((1 - local) * 24) + "px)";
});
}
function mountScroll() {
function read() {
var max = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) - window.innerHeight;
var p = max > 0 ? window.scrollY / max : 0;
if (p < 0) p = 0;
if (p > 1) p = 1;
layout(p);
}
layout(reduce ? 1 : 0);
if (!reduce) window.addEventListener("scroll", read, { passive: true });
}
mountScroll();
</script>
</body>
</html>About this effect
Five lines each own a slice of the scroll. Before their slice they sit 24px down at opacity 0. Inside the slice they rise and fade in.
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.