VibeFX
Scroll inside the frame. The shot stays paused.

The prompt

Build pinned steps that highlight with scroll.

## Look
Three lines, clamp(28px, 5vw, 52px), inactive #3a3a46, active #c4b5fd, sticky in a 100vh frame. Page #08080d. Runway 240vh.

## Behavior
Active index is floor(progress * count), clamped to the last item. Include function mountScroll.

## Design tokens
- Active #c4b5fd; inactive #3a3a46; page #08080d.

## Motion
- Highlight changes with scroll, no fade duration required. A 150ms color transition is fine.

## 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; } ol { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; gap: 18px; list-style: none; padding: 0 8vw; } li { font-size: clamp(28px, 5vw, 52px); letter-spacing: -0.04em; color: #3a3a46; } li.on { color: #c4b5fd; }
  @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"><ol><li>01 Collect</li><li>02 Animate</li><li>03 Paste</li></ol></div>

<script>

  var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
  function layout(p) { 
      var items = document.querySelectorAll("li");
      var active = Math.min(items.length - 1, Math.floor(p * items.length));
      items.forEach(function (item, i) { item.classList.toggle("on", i === active); });
     }
  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

Three steps stay on screen. Scroll progress picks step 1, 2, or 3 and tints that row violet while the others stay muted.

Similar effects