VibeFX
Scroll inside the frame. The shot stays paused.

The prompt

Build three parallax words.

## Look
Words NEAR #f2f2f7, MID #c4b5fd, FAR #8a8a99, size clamp(28px, 6vw, 64px), weight 700, centered in a sticky 100vh stage. Page #08080d. Runway 200vh.

## Behavior
translateY((0.5 - progress) * depth * 180px) with depths 0.2, 0.5, and 0.9. Include function mountScroll.

## Design tokens
- Colors #f2f2f7, #c4b5fd, #8a8a99; page #08080d.

## Motion
- Travel is scroll-linked. Peak separation about 180px.

## 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: 200vh; } .stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; } span { position: absolute; font-size: clamp(28px, 6vw, 64px); font-weight: 700; 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>
<div class="runway"><div class="stage"><span data-d="0.2">NEAR</span><span data-d="0.5" style="color:#c4b5fd">MID</span><span data-d="0.9" style="color:#8a8a99">FAR</span></div></div>

<script>

  var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
  function layout(p) { 
      document.querySelectorAll("span").forEach(function (el) {
        var d = Number(el.getAttribute("data-d"));
        el.style.transform = "translateY(" + ((0.5 - p) * d * 180) + "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

NEAR, MID, and FAR translate vertically at 0.2, 0.5, and 0.9 of the scroll distance, so the stack separates as you move.

Similar effects