# Shimmer Text

> A beam of light that sweeps across the text on a loop.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: shimmer, shine, gradient, background-clip, animation
- Live preview: https://copy-css.com/snippets/shimmer-text
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<h2 class="text-shimmer">Coming soon</h2>
```

## CSS

```css
.text-shimmer {
  margin: 0;
  font: 800 36px/1.1 system-ui, sans-serif;
  background: linear-gradient(90deg, #64748b 0%, #64748b 40%, #f8fafc 50%, #64748b 60%, #64748b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 2.4s linear infinite;
}

@keyframes text-shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

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

## Notes

- This CSS Shimmer Text is 21 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses keyframe animations, linear gradients, gradient-clipped text and reduced-motion support.
- gradient-clipped text: Includes the -webkit- prefix Safari still needs.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
