# RGB Split Text

> Chromatic aberration text with red and cyan channels pulled apart and an occasional jitter.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: glitch, chromatic aberration, text-shadow, cyberpunk, anaglyph
- Live preview: https://copy-css.com/snippets/rgb-split-text
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<h2 class="text-rgb">SIGNAL</h2>
```

## CSS

```css
.text-rgb {
  --shift: 3px;
  margin: 0;
  color: #fafafa;
  font: 900 44px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-shadow:
    calc(var(--shift) * -1) 0 #ff004c,
    var(--shift) 0 #00e5ff;
  animation: text-rgb-jitter 3s steps(1) infinite;
}

@keyframes text-rgb-jitter {
  0%, 100% { transform: none; }
  90% { transform: translateX(-2px) skewX(6deg); }
  93% { transform: translateX(3px); }
  96% { transform: translateX(-1px) skewX(-4deg); }
}

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

## Notes

- This CSS RGB Split Text is 22 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, text shadows and custom properties.
- Customize with: `--shift`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
