Skip to content
Motionboard
One AI tool to followed by a pale indigo pill with a phrase rolling inside it, on an off-white background.
Opening · 11s film

Rotating Text Animation

One sentence, One AI tool to, ends in a pill whose phrase rolls up and out with a short blur while the next one rolls in from below. The pill resizes to each phrase, the last roll lands on do it all, and the sentence moves up for the Quire lockup.

Motionboard shot: Word Roll

Seen in real launch films

Notion AI 0:04–0:06YouTube ↗
Notion AI0:04–0:06YouTube ↗

How to make a Rotating 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/motionboard
How it's built

Keep the sentence fixed and change only one phrase inside a pill. Set the line in Inter 600 at 100px on a flex row centred on the frame, then stack six phrases inside the pill in a window that clips only at the top and bottom edges (write docs, plan sprints, answer questions, draft emails, sum up meetings, do it all). Measure each phrase once with a hidden span and set the pill width to that width plus 92px. Five rolls of 0.46s start at 1.5s, 2.72s, 3.94s, 5.16s and 6.38s with a 0.76s hold between them: the old phrase moves up 100px with power3.inOut, fades out over 0.3s and blurs 0 to 6px, and the new phrase starts 100px below at 6px blur and settles in.

Tween the pill width on the same frames and the same curve as each roll, so the pill follows the phrase and the centred sentence moves only as much as the width changes. After the last roll ends at 6.84s, flash the pill background from #e7e4ff to #c4bdff at 6.9s with a 22px ring, drop the period in at 7.04s with back.out(2.4), then dissolve the pill into plain text from 7.4s to 7.8s so the line reads One AI tool to do it all. Move the whole sentence up 250px at 7.9s over 0.65s.

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 sentence, the measured pill and the lockup. Rise the indigo #4f46e5 mark, the word Quire and the tagline from 8.2s, and hold everything still from 8.75s to the end at 11s. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.

Full recipe

Why it works

Only one phrase changes and the rest of the sentence stays put, so the eye stays on one spot and reads each new phrase in the same place. The phrase moves up and out while the next one rolls in from below, and both carry a short blur (0 to 6px) and an opacity change, so the swap reads as one motion and the two phrases never sit crisp on top of each other. The pill width is measured per phrase and tweened on the same frames and the same curve as the roll, so the pill hugs each phrase and the sentence, centred as a whole, shifts only as much as the width changes. Each phrase holds 0.76s, long enough to read, and the 0.46s rolls keep a steady beat. The window clips only at the pill's top and bottom edges, so a long phrase is never cut at its sides while the pill is still narrower. The last roll lands on do it all, the pill flashes once, the period drops in and the pill dissolves into plain text, so the whole sentence reads as one finished claim before it moves up and gives way to the lockup. There is one accent color, indigo #4f46e5, on a warm off-white page.

Spec

Timing
Film 11s. Lead words rise 0.15–0.9s (0.5s, 0.08s stagger); pill fades in 0.4–0.95s with write docs inside; five rolls of 0.46s start at 1.5s, 2.72s, 3.94s, 5.16s and 6.38s with a 0.76s hold between them (the last roll ends at 6.84s); pill flash 6.9–7.4s; period drops in at 7.04s (0.4s); pill dissolves into plain text 7.4–7.8s; sentence moves up 7.9–8.55s; mark and wordmark rise 8.2–8.7s; tagline 8.28–8.73s; lockup still from 8.75s to the end (2.25s)
Easing
Lead words and lockup cubic-bezier(0.16,1,0.3,1) (expo.out); rolls, pill width, dissolve and move-up power3.inOut; old phrase fade power1.in, new phrase fade power1.out; blur out power1.out and blur in power2.out; flash power2.out then power2.inOut; ring expo.out; period back.out(2.4); sentence push linear (none)
Camera
Locked flat frame. The only movement is a slow constant push of the sentence, scale 1 to 1.025 over 0.75–7.9s, which stops before the sentence moves up 250px at 7.9–8.55s
Subject
One line centred on the frame in Inter 600 at 100px, letter spacing -0.03em, line height 120px: the lead words One AI tool to (26px between words, 30px after the last), then a pill 144px high with a 72px radius and 46px of padding on each side, so its width is the measured phrase width plus 92px. Six phrases sit stacked inside a window that clips top and bottom only: write docs, plan sprints, answer questions, draft emails, sum up meetings, do it all. Each roll moves 100px; the blur goes 0 to 6px over 0.24s on the old phrase and 6px to 0 over 0.3s on the new one, which starts 0.12s later and fades in over 0.3s. The pill resolves to the bare text width of do it all, and a period grows from 0px width to its own width. The lockup is a 116px indigo mark (rounded square, radius 30, three stacked pages), Quire at 116px Inter 700 and a 44px tagline
Sync
The pill width tween starts on the same frame as each roll and uses the same 0.46s power3.inOut curve; the new phrase starts fading in 0.12s after the old one starts moving; the flash starts 0.06s after the last roll ends and the period follows 0.14s later; the pill dissolves at 7.4s once the period has landed; the sentence starts moving up at 7.9s and the lockup rises at 8.2s, after it is already clear of the lockup's area
Style
Background #f4f3ee with a faint lilac glow rgba(120,110,255,0.11) at the top left, a faint peach glow rgba(255,184,132,0.15) at the bottom right and a vignette reaching 7% at the edges; ink #121214, pill #e7e4ff with text #4338ca, flash #c4bdff, one accent indigo #4f46e5; Inter 600 for the sentence, 700 for the wordmark; no grain

Prompt

Build an 11-second, 1920x1080, 30 fps light product film called Word Roll for a fictional product, Quire (an AI workspace). Background #f4f3ee with a faint lilac radial glow rgba(120,110,255,0.11) at the top left, a faint peach glow rgba(255,184,132,0.15) at the bottom right and a vignette reaching 7% at the edges; ink #121214, one accent indigo #4f46e5, font Inter, no grain. One sentence sits on one line, centred: One AI tool to followed by a pill that holds a rotating phrase, in Inter 600 at 100px, letter spacing -0.03em, line height 120px. Build it as a flex row 144px high with justify-content centre, so it stays centred as the pill width changes: the four lead words One, AI, tool, to (26px gap, 30px margin after them), then the pill (144px high, 72px radius, background #e7e4ff, text #4338ca), then a period at width 0. Inside the pill put a window with clip-path inset(0 -700px 0 -700px), so only the top and bottom edges clip, and six absolutely positioned phrases centred in it: write docs, plan sprints, answer questions, draft emails, sum up meetings, do it all. Measure each phrase width once at load with a hidden span; the pill width for a phrase is its measured width plus 92px (46px padding on each side). Hide everything in CSS (opacity 0) and drive it with one paused GSAP timeline, with no CSS animations or transitions. Timeline: the lead words rise 26px and fade in from 0.15s (0.5s expo.out, 0.08s stagger); the pill rises 20px and fades in from 0.4s (0.55s expo.out), already showing write docs; a slow linear push of the sentence wrapper from scale 1 to 1.025 runs 0.75–7.9s. Five rolls start at 1.5, 2.72, 3.94, 5.16 and 6.38s (0.46s roll plus 0.76s hold). In each roll the old phrase moves up 100px over 0.46s (power3.inOut), fades out over 0.3s (power1.in) and blurs 0 to 6px over 0.24s; the new phrase starts 100px below with 6px blur, moves to 0 over 0.46s (power3.inOut), fades in over 0.3s starting 0.12s later (power1.out) and sharpens to 0 blur over 0.3s starting 0.14s later (power2.out); the pill width tweens to the new phrase width plus 92px over the same 0.46s with power3.inOut. After the last roll ends at 6.84s: at 6.9s the pill background goes from #e7e4ff to #c4bdff in 0.1s and back in 0.32s while a ring box-shadow 0 0 0 22px rgba(79,70,229,0), starting from alpha 0.4, expands over 0.5s (expo.out); at 7.04s the period grows to its measured width in 0.2s and drops in from 40px above with back.out(2.4) over 0.4s. From 7.4s to 7.8s the pill resolves into plain text: its width goes to the bare width of do it all, its background fades to alpha 0 and its colour goes to #121214 (power3.inOut), so the sentence reads One AI tool to do it all. At 7.9s the whole sentence moves up 250px over 0.65s (power3.inOut). The lockup sits below it: a 116px indigo #4f46e5 mark (rounded square, radius 30, three stacked white pages with two text lines on the front one), the word Quire at 116px Inter 700 with -0.04em letter spacing, and the tagline Your whole workday, in one place. at 44px Inter 500 in #6a6878. The mark and word rise 26px and fade in from 8.2s (0.5s expo.out); the tagline from 8.28s (0.45s expo.out). Everything is still from 8.75s to the end at 11s.

People describe it as

  • One word in the sentence keeps rolling up and being replaced while the pill resizes around it
  • The sentence cycles through what the product does and ends on do it all
  • Each new phrase slides in from below with a little blur, like a slot reel

Often confused with

  • Prompt CarouselPrompt Carousel types prompts into an input box and scrolls them; here one fixed sentence keeps its place and a single phrase inside a pill swaps, with the pill resizing to each phrase.
  • Typing Animation (Typewriter Effect)Rhythmic Typing writes, deletes and retypes text character by character; here whole phrases roll vertically with a short blur and the pill width follows each one.
Recipe file (.md)

FAQ

What is a rotating text animation?

A rotating text animation swaps one word or phrase inside a fixed line, usually by rolling the old one out and the new one in. In a product film it lets one sentence list several use cases, such as write docs, plan sprints and answer questions, in the same spot on screen.

How do you keep the sentence centred while the phrase changes width?

Put the line in a centred flex row and tween the pill width to each phrase's measured width plus padding, using the same 0.46s power3.inOut curve as the roll. Clip the phrase window only at the top and bottom so a long phrase is not cut at its sides while the pill is still narrower.

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.

More Opening