VibeFX
Live preview · fully interactive

The prompt

Build a glyph cursor that sheds letters.

## Look
Glyphs are 18px, weight 700, color #ddd6fe. They cycle through the letters VIBEFX. Page #08080d.

## Behavior
Every 70ms drop a letter at the pointer. It rises 80px and fades to 0 over 900ms, then is removed.

## Design tokens
- Glyph #ddd6fe; page #08080d; hint #8a8a99.

## Motion
- Spawn interval 70ms. Rise duration 900ms, distance 80px, linear fade.

## 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: hidden;
  }
  .hint { position: absolute; left: 16px; top: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a99; }
  .g { position: fixed; font-weight: 700; font-size: 18px; color: #ddd6fe; pointer-events: none; }
  @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">Letters follow</p>

<script>

  var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
  var pointer = { x: window.innerWidth / 2, y: window.innerHeight / 2 };
  var userMoved = false;
  window.addEventListener("pointermove", function (e) {
    userMoved = true;
    pointer.x = e.clientX;
    pointer.y = e.clientY;
  });
  function idlePointer(now) {
    if (userMoved || reduce) return;
    pointer.x = window.innerWidth * (0.5 + Math.cos(now / 700) * 0.28);
    pointer.y = window.innerHeight * (0.5 + Math.sin(now / 900) * 0.2);
  }

  var word = "VIBEFX";
  var i = 0;
  var last = 0;
  function spawn(x, y) {
    var el = document.createElement("span");
    el.className = "g";
    el.textContent = word[i % word.length];
    i++;
    el.style.left = x + "px";
    el.style.top = y + "px";
    document.body.appendChild(el);
    var born = performance.now();
    function rise(now) {
      var t = (now - born) / 900;
      if (t >= 1) { el.remove(); return; }
      el.style.top = (y - t * 80) + "px";
      el.style.opacity = String(1 - t);
      requestAnimationFrame(rise);
    }
    if (!reduce) requestAnimationFrame(rise);
  }
  function frame(now) {
    idlePointer(now);
    if (!reduce && now - last > 70) { last = now; spawn(pointer.x, pointer.y); }
    if (!reduce) requestAnimationFrame(frame);
  }
  requestAnimationFrame(frame);
</script>
</body>
</html>

About this effect

Moving the pointer drops glyphs from the word VIBEFX. Each glyph rises about 80px and fades out over 900ms. An idle orbit keeps the preview populated.

Similar effects