# Staggered Letter Reveal

> Each letter of a headline rises into place one after another, staggered with a custom property.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: letters, stagger, entrance, hero, custom properties
- Live preview: https://copy-css.com/snippets/letter-stagger-reveal
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<h2 class="text-stagger">
  <span class="text-stagger-sr">Welcome</span>
  <span aria-hidden="true"><span style="--i: 0">W</span><span style="--i: 1">e</span><span style="--i: 2">l</span><span style="--i: 3">c</span><span style="--i: 4">o</span><span style="--i: 5">m</span><span style="--i: 6">e</span></span>
</h2>
```

## CSS

```css
.text-stagger {
  margin: 0;
  color: #312e81;
  font: 800 46px/1.1 system-ui, sans-serif;
}

/* Full word for screen readers, letters are hidden from them */
.text-stagger-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.text-stagger span span {
  display: inline-block;
  animation: text-stagger-in 0.6s calc(var(--i) * 70ms) cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

@keyframes text-stagger-in {
  from {
    opacity: 0;
    transform: translateY(0.5em) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-stagger span span { animation: none; }
}
```

## Notes

- This CSS Staggered Letter Reveal is 31 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, clip paths and custom properties.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
