Component · Text animations

Animated gradient text headline

by Informeek Studio 11 November 2026
Live Pick a palette, then drag across the headline

The prompt

Build an animated gradient text headline for a design festival. Off-white page (#f7f5f0) and near-black ink (#16151a). Top bar: a small conic gradient dot with "Hue Week 2027" and "Rotterdam, 12 to 18 April", over a 1.5px rule. Headline "Colour is" and "a verb." on two lines, extra bold, up to 168px, letter spacing -0.055em, line height 0.9, sized to fit its text. Fill it with gradient text in CSS: background-clip text, a 90 degree linear gradient that repeats three colours three times, a background size of 300% and a JavaScript loop moving background-position from 0 to 100% at 11% a second, which loops without a seam. Register --c1, --c2 and --c3 with @property as colours and transition them over 1.1s, so the palette can crossfade. Three pill buttons with gradient dots switch the palette: Dawn (#ff5f6d, #ffb347, #ff6fd8), Lagoon (#00b4a6, #2f6bff, #8a5cff) and Ember (#ff3d2e, #ff9e1b, #c2185b); until someone picks one they rotate every 5.2s. Moving the mouse over the headline pushes the flow, and dragging scrubs it with momentum, also on touch. On the right, a slowly spinning conic ring with "12 to 18 April". Add a grey paragraph, three stats and a "Get a pass from €45" pill with a gradient border. Hide the ring and stats on phones, and freeze it for reduced motion.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by choosing three brand colours for each palette button.

About this gradient text in CSS

Gradient text in CSS comes down to three lines: a gradient background, background-clip set to text and a transparent text colour. This festival headline adds the two things that usually go wrong. The flow loops without a jump, because the gradient repeats its three colours three times and is moved exactly two repeats across. And the palette can change smoothly, because the three colours are registered as real colour properties, so the browser can fade between them.

Three palette buttons swap between dawn pinks, lagoon blues and ember oranges over just over a second, and until someone chooses, they rotate by themselves. Sweeping the mouse over the words pushes the colours along, and dragging scrubs them back and forth with a little momentum. The ticket button and the spinning ring pick up the same colours, so the page always matches.

Why the prompt works

  • It explains the seamless loop, three repeats and a 300 percent background.
  • It uses @property so the palettes crossfade instead of snapping.
  • It lists every palette in hex, nine colours in all.
  • It keeps the text fitted so the whole gradient shows on the words.

Where to use it

Festival and conference pages, creative agency heroes and launch headlines. Keep it to one headline per page and set body text in plain ink.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Text animations

Text cursor trail that writes a poem

Live
Component · Text animations

Blur text effect with a moving focus lens

Live
Component · Text animations

ASCII text art wordmark that glows like a kiln