VibeFX
Live preview · fully interactive

The prompt

Build a hero with a rotating word.

## Look
Headline clamp(32px, 6vw, 68px), tracking -0.05em, #f2f2f7. The rotating word is #c4b5fd inside a 1.1em overflow-hidden window. Words: motion, launch, product, then motion again so the loop is seamless. Page #08080d.

## Behavior
Translate the stack by -1.1em, -2.2em, then -3.3em. Hold each word before moving.

## Design tokens
- Static text #f2f2f7; rotating word #c4b5fd; page #08080d.

## Motion
- Total cycle 5.4s so each word holds about 1.2s. Easing cubic-bezier(0.16, 1, 0.3, 1).

## Constraints
- Single self-contained HTML file. No libraries. CSS only.
- 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; }
  main { min-height: 100vh; display: grid; place-items: center; padding: 24px; } h1 { display: flex; gap: 0.35em; flex-wrap: wrap; justify-content: center; font-size: clamp(32px, 6vw, 68px); letter-spacing: -0.05em; } .reel { height: 1.1em; overflow: hidden; color: #c4b5fd; } .reel span { display: block; height: 1.1em; animation: reel 5.4s cubic-bezier(0.16, 1, 0.3, 1) infinite; } @keyframes reel { 0%, 22% { transform: translateY(0); } 33%, 55% { transform: translateY(-1.1em); } 66%, 88% { transform: translateY(-2.2em); } 100% { transform: translateY(-3.3em); } }
  @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>
<main><h1>Ship <span class="reel"><span>motion<br>launch<br>product<br>motion</span></span> sites</h1></main>

<script>

</script>
</body>
</html>

About this effect

The sentence “Ship ____ sites” rotates through motion, launch, and product every 1.8s. The reel is a masked column that translates by one line.

Similar effects