# Line Reveal

> A headline whose lines slide up from behind an invisible mask, one after another.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: reveal, slide up, headline, mask, entrance, animation
- Live preview: https://copy-css.com/snippets/text-reveal
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<h2 class="reveal">
  <span><span>Design that</span></span>
  <span><span>feels effortless</span></span>
</h2>
```

## CSS

```css
.reveal {
  margin: 0;
  color: #0f172a;
  font: 800 30px/1.15 system-ui, sans-serif;
}

/* Each line clips its own text */
.reveal > span {
  display: block;
  overflow: hidden;
}

.reveal > span > span {
  display: block;
  animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal > span:nth-child(2) > span {
  animation-delay: 0.12s;
}

@keyframes reveal-up {
  from { transform: translateY(110%); }
}

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

## Notes

- This CSS Line Reveal is 28 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
