VibeFX
Live preview · fully interactive

The prompt

Build a three-line masked text reveal.

## Look
Lines are clamp(32px, 6vw, 68px), weight 700, tracking -0.045em, line-height 1.05. First two lines #f2f2f7, third #c4b5fd. Each line is overflow hidden. Page #08080d.

## Behavior
Translate each inner span from translateY(110%) to 0. Stagger the lines by 120ms.

## Design tokens
- Text #f2f2f7 and #c4b5fd; page #08080d.

## Motion
- Duration 0.8s, easing cubic-bezier(0.16, 1, 0.3, 1). Delays 0s, 0.12s, 0.24s.

## 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; } .line { overflow: hidden; } .line span { display: block; font-size: clamp(32px, 6vw, 68px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; transform: translateY(110%); animation: up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .line:nth-child(2) span { animation-delay: 0.12s; } .line:nth-child(3) span { animation-delay: 0.24s; color: #c4b5fd; } @keyframes up { to { transform: translateY(0); } }
  @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><div><p class="line"><span>Preview it.</span></p><p class="line"><span>Copy the prompt.</span></p><p class="line"><span>Ship the page.</span></p></div></main>

<script>

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

About this effect

Each line sits in an overflow-hidden mask and translates up from 110% over 0.8s with a 120ms stagger. The last line is the accent color.

Similar effects