# Fire Text

> Burning text with stacked yellow, orange and red text-shadows that flicker like real flames.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: flame, burning, text-shadow, glow, flicker
- Live preview: https://copy-css.com/snippets/fire-text
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<h2 class="text-fire">Blaze</h2>
```

## CSS

```css
.text-fire {
  margin: 0;
  padding-top: 0.3em;
  color: #fffbeb;
  font: 900 56px/1 system-ui, sans-serif;
  text-shadow:
    0 0 2px #fde047,
    0 -3px 3px #fde047,
    1px -7px 6px #fb923c,
    -1px -12px 10px #f97316,
    0 -20px 18px #dc2626,
    0 0 30px #7c2d12;
  animation: text-fire-flicker 1.2s ease-in-out infinite alternate;
}

@keyframes text-fire-flicker {
  50% {
    text-shadow:
      0 0 3px #fde047,
      1px -4px 4px #fde047,
      -2px -9px 7px #fb923c,
      2px -15px 12px #f97316,
      -1px -24px 20px #dc2626,
      0 0 34px #7c2d12;
  }
}

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

## Notes

- This CSS Fire Text is 30 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses keyframe animations, text shadows and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
