05.09 · Text & Typography

Outline to Fill

Hollow letters fill with color, as a wipe or a fade. Best for big headlines.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Wipe

OUTLINE

Fade

OUTLINE

Try it

Change a setting and the animation plays again.

Fill direction

Where the wipe starts; the fade fills all at once.

Speed

How long the letters take to fill.

Outline thickness

Thin looks precise; thick looks bold and graphic.

More optionsFewer options

Feel

Gentle eases in and out; Even keeps one pace.

Outline color

The color of the letters' edges.

Fill color

The color that pours into the letters.

Short words work best, up to 10 letters.

Copy the prompt

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

Add an outline-to-fill effect to [your headline or logo word]. The text should start hollow, with only the outline of each letter showing, then fill with color. The fill can wipe in from one side, like paint, or fade in everywhere at once, like ink soaking through. Draw the outline and the filled text as two layers in exactly the same place so the letters never shift. Use large, heavy letters so there is enough inside each one to fill. The text must stay readable by screen readers. If the visitor has reduced motion turned on, show the filled text straight away. 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

  • Big headlines
  • Logos
  • Posters
  • Section titles

Avoid on

  • Small text
  • Body text