# Text Fill Loader

> The word “Loading” fills with color from left to right, using background-clip: text.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: text, fill, loading, background-clip, progress
- Live preview: https://copy-css.com/snippets/text-fill-loader
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="text-loader" role="status">Loading</div>
```

## CSS

```css
.text-loader {
  color: transparent;
  font: 800 34px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background:
    linear-gradient(#6366f1 0 0) left / 0% 100% no-repeat,
    #e2e8f0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-fill 2s ease-in-out infinite;
}

@keyframes text-fill {
  to { background-size: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .text-loader {
    animation-duration: 4s;
  }
}
```

## Notes

- This CSS Text Fill Loader is 22 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.
