06.10 · 3D & Advanced

Chromatic Aberration

A word splits into red, green and blue fringes. Best for bold titles.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

PRISM

Try it

Change a setting and see the difference as it moves.

Movement

Pulse breathes in and out; Glitch jumps now and then.

Color split

How far the red and blue copies sit from the word.

Direction

Which way the red and blue copies move apart.

More optionsFewer options

Blurs the colored copies, like a real lens.

Short words work best.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a chromatic aberration effect to [your headline or short word]. Stack three copies of the text in pure red, green and blue, blend them so that where they overlap they add up to white, and shift the red and blue copies in opposite directions so colored fringes appear at the letters' edges, like a cheap camera lens. The split can breathe in and out, or jump now and then like a glitch. It only works on a dark background. Screen readers should read the text once, not three times. If the visitor has reduced motion turned on, keep the copies still. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Bold titles
  • Music and games
  • Error pages

Avoid on

  • Body text
  • Light backgrounds