
Gradient Text Animation
A two-line headline, Ask anything. See it answered., is revealed from left to right through a blurred edge while a blue, violet, pink and orange gradient keeps drifting through the letters. The headline shrinks up, a search box types a query under it, and the answer's first line arrives with the same sweep before the Lumen lockup.
Motionboard shot: Gradient Reveal
Seen in real launch films
How to make a Gradient Text Animation with Claude Code or Codex
Copy the recipe above and paste it into Claude Code or Codex. The agent installs the skill and builds the shot.
npx skills add krisyangdev/motionboardHow it's built
Fill the headline with a four-colour gradient using background-clip: text: blue #3b82f6, violet #8b5cf6, pink #ec4899, orange #f97316 and a repeat of blue so the tile loops. Make the tile 1500px wide and move background-position-x from timeline time, one tile every 7s (about 214px/s), so the colours keep sliding across the letters for the whole film. Reveal each line with a mask-image: a linear-gradient whose soft edge is 120px wide moves from left of the line to right of it in 1.2s with power2.inOut, and a blur of 14px × (1 − progress)² clears behind the edge. Start line 2 at 0.6s, 0.3s after line 1, so the two lines read as one sweep. Hide the lines in CSS with a transparent mask, since a tl.set at time 0 may not render on the first frame.
The headline is 150px at weight 700 with letter-spacing −0.045em. After a 1.1s hold it shrinks to 0.6 and moves up 284px over 0.7s (power3.inOut) at 2.9s. A 1500x120px search pill with a 3px gradient border rises at 3.5s, the query types in over 4.0–4.9s and the send button pulses at 5.0s. At 5.1s the answer's first line (76px) sweeps in with the same mask and gradient, followed by body text at 5.8s and three source chips from 6.1s. Fade the scene out at 7.8–8.15s so the lockup does not overlap it.
Press the copy button to send this recipe to Claude Code or Codex, or install the skill once with npx skills add krisyangdev/motionboard. The agent builds the mask reveal, the drifting gradient and the search box. Start the lockup at 8.15s with a gradient spark mark, the word Lumen at 160px in the same drifting gradient and a tagline, settled by 8.8s and held to the end. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.
Full recipe
Why it works
The reveal and the colour are two separate layers, so the eye gets two kinds of motion at once. A soft edge about 120px wide crosses each line from left to right in 1.2s while the blur clears behind it, so the headline arrives like a light being switched on. Under the mask the four-colour gradient (blue, violet, pink, orange) keeps sliding across the letters at a constant speed, which keeps the headline alive during the 1.1s hold and makes the colour read as light moving through the type. The second line starts 0.3s after the first, so the sweep reads as one gesture across two lines. The same mask-and-gradient recipe returns for the answer's first line, so the viewer learns the move once and recognises it when the answer arrives. The headline shrinks up to make room for the search box, which turns the title into a header and shows what the product does: ask, then see the answer. The film is white with a faint colour haze, the gradient is the only colour, and the answer line (76px) is the largest new element in its beat.
Spec
- Timing
- Film 11s. Line 1 revealed 0.3–1.5s and line 2 0.6–1.8s (1.2s each); hold with the gradient drifting 1.8–2.9s; headline shrinks up 2.9–3.6s; search pill rises 3.5–4.05s; query typed 4.0–4.9s; send button pulses 5.0–5.45s; answer line sweeps in 5.1–6.3s; body text 5.8–6.4s; three source chips 6.1–6.84s (0.12s stagger); scene fades out 7.8–8.15s; lockup 8.15–8.8s and holds still to 11s (2.2s)
- Easing
- Both headline reveals and the answer reveal use power2.inOut; the shrink uses power3.inOut; the search pill rises with expo.out; typing uses power1.inOut; the send pulse is power2.in down to 0.86 then back.out(3); body text and chips use power2.out; the scene exit uses power2.in; the lockup mark uses back.out(1.6), the wordmark expo.out and the tagline power2.out; the gradient drift and the haze drift are linear (none)
- Camera
- Locked camera, no zoom. The gradient tile is 1500px wide (640px on the wordmark) and moves one full tile every 7s, about 214px/s (91px/s on the wordmark), computed from timeline time. The three haze blobs drift linearly over the whole film by 70–180px. Each reveal clears a blur of 14px × (1 − progress)² behind the mask edge
- Subject
- Headline Ask anything. / See it answered. at 150px, weight 700, letter-spacing −0.045em, line height 1.12, centred from y=340, then scaled to 0.6 (about 90px) and moved up 284px. Search pill 1500x120px at (210, 300) with a 3px gradient border, a 46px magnifier, the query at 44px and a 78px gradient send button. Answer line Steep 1:8 in cold water, 14 hours. at 76px, weight 700, at (210, 468); body text 34px at y=592; three chips 60px high with 27px text at y=760. Lockup: 130px gradient spark mark, Lumen at 160px in the drifting gradient, tagline Search that answers. at 40px
- Sync
- The pill appears at 3.5s, 0.1s before the shrink ends at 3.6s; the caret is solid while the query types 4.0–4.9s and disappears at 5.05s; the answer sweep starts at 5.1s, the moment the send button springs back; the body text lands about halfway through the sweep and the chips follow; the lockup starts the moment the scene has finished fading, so the two never share the frame
- Style
- Background
#ffffffwith three soft radial haze blobs (blue, pink, violet at 18–28% opacity); text#14141b, secondary#6b6b78; one gradient#3b82f6→#8b5cf6→#ec4899→#f97316→#3b82f6used on the headline, the pill border, the send button, the answer line and the wordmark; Inter throughout, weight 700 for display text; no grain, no vignette
Prompt
Build an 11-second, 1920x1080, 30 fps light product film called Gradient Reveal for a fictional product, Lumen (an AI search engine). White background, font Inter, one four-colour gradient #3b82f6 → #8b5cf6 → #ec4899 → #f97316 → #3b82f6 (the last stop repeats the first so the tile loops) as the only colour. Behind everything put three soft radial-gradient blobs (blue, pink, violet at 18–28% opacity, 1200px) that drift linearly over the whole film. Beat 1: a two-line headline Ask anything. / See it answered. at 150px, weight 700, letter-spacing −0.045em, line height 1.12, centred from y=340. Fill each line with the gradient using background-clip: text, a 1500px-wide background tile and 90deg stops, and move background-position-x from timeline time: x = −((t × 1500 / 7) mod 1500) px, so the colours keep sliding across the letters for the whole film. Reveal each line left to right with a mask-image linear-gradient whose edge is 120px wide: edge centre x = −60 + p × (width + 120), mask = #000 up to x − 60, transparent from x + 60. Drive p with a power2.inOut tween of 1.2s (line 1 at 0.3s, line 2 at 0.6s) and set filter: blur(14px × (1 − p)²) in the same onUpdate. Hide the lines in CSS with a fully transparent mask so the first frame is empty. Beat 2: at 2.9s scale the headline to 0.6 and move it up 284px over 0.7s (power3.inOut, transform-origin top centre). At 3.5s a 1500x120px search pill with a 3px drifting gradient border rises from 34px below (expo.out, 0.55s). It holds a 46px magnifier, the query how to make cold brew at home at 44px typed from 4.0 to 4.9s (power1.inOut, characters computed from the tween value) with a 4px caret that stays solid while typing, and a 78px gradient send button that pulses to 0.86 and back (back.out(3)) at 5.0–5.45s. At 5.1s the answer line Steep 1:8 in cold water, 14 hours. at 76px, weight 700, left x=210, y=468, sweeps in with the same gradient and mask reveal (1.2s). Body text at 34px (Use coarse-ground coffee at one part to eight parts water. Steep 12 to 16 hours in the fridge, then strain through a paper filter.) fades up at 5.8s, then three 60px source chips (brewlab.co, coffeeatlas.org, homebarista.net +3) at 27px stagger in from 6.1s with 0.12s gaps. At 7.8s fade the whole scene out over 0.35s (power2.in). Lockup from 8.15s: a 130px gradient circle with a white four-point spark, Lumen at 160px with the drifting gradient fill (640px tile), and the tagline Search that answers. at 40px in #6b6b78; mark back.out(1.6), wordmark expo.out, tagline power2.out, all settled by 8.8s and held still to 11s. Drive everything from one paused GSAP timeline; use a linear proxy tween for the gradient drift, no CSS animations.
People describe it as
- The headline fades in from left to right with a blurry edge while the colours slide through the letters
- A gradient headline like an AI search launch, then it shrinks up and a search box appears under it
- The answer shows up with the same colour sweep as the title
Often confused with
- Blur Text AnimationBlur Text Animation resolves each word of a line from heavy blur on a dark field; in Gradient Reveal one soft mask edge crosses the whole line from left to right while a moving four-colour gradient fills the letters.
- Word-by-Word Text HighlightWord-by-Word Text Highlight brightens words from gray to white on a still line; in Gradient Reveal the line arrives left to right through a feathered edge and its colour keeps moving.
FAQ
How do you make gradient text in CSS?
Give the element a linear-gradient background, add background-clip: text and make the text colour transparent. To animate it, make the background tile wider than the text and move background-position from the timeline time, so the colours slide through the letters.
How do you reveal text left to right with a soft edge?
Use a mask-image linear-gradient on the text and move its edge across the element. A 120px wide edge, 1.2s and power2.inOut work well, and a blur of 14px that clears behind the edge makes the text sharpen as it is uncovered.
Is it free to use?
Yes. Motionboard is free and MIT licensed, so you can use and modify the recipes and the films they produce in personal and commercial projects. The licence asks only that copies of the recipe files keep the copyright notice.








