05.08 · Text & Typography

Text Gradient Animation

Colors flow through the letters while the text stays still. Best for headlines.

Watch it

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

Flow

Try it

Change a setting and see the difference as it moves.

Gradient

How the colors move through the letters.

Speed

Slower feels calm; faster feels lively.

More optionsFewer options

Short words show the flow 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 flowing color gradient to [your headline or logo text]. Fill the letters with a gradient instead of a flat color: paint the gradient as the text's background, show it only inside the letter shapes, and make the text color itself see-through. Then keep moving the gradient behind the letters, or turn it like a color wheel, so color flows through the word while the letters stay still. End the gradient with the color it starts with so the loop has no seam. Give the text a solid fallback color for browsers that cannot clip a background to text. If the visitor has reduced motion turned on, keep the gradient 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

  • Headlines
  • Logos
  • Hero titles

Avoid on

  • Body text
  • Small text