Skip to content
Motionboard
A title in a blue selection box with eight handles and a size label on a light dotted canvas, a cursor on one handle.

Motionboard recreation · no launch-film original

Opening · 11s film

Selection Box Animation

A title, Captions that keep up, sits in a blue selection box with eight handles on a dotted canvas. A cursor drags the right handle in and the text re-wraps to two lines and then three, then drags the corner out and the text returns to two lines at a larger size. The box fades, the type shrinks into a tagline and the Glyph lockup settles.

Motionboard shot: Resize Reflow

How to make a Selection Box 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

Compute everything from one width. Put the title in four word spans and write a render(t) function that takes the box width W(t) and returns the line breaks, the font size, the box height and the label text. The wrap rule is short: one line if it fits the inner width (W − 120px), two lines (Captions that / keep up) if both halves fit, otherwise fill each line greedily, which gives Captions / that keep / up. Drive W with three drags: 1280→980 over 2.3–3.0s, 980→690 over 4.0–4.7s with power2.inOut, then 690→1260 over 5.85–6.65s with power1.inOut while the font grows to 1.45x.

Make the reflow readable. When a break changes, ease each word from its old place to its new place with power3.inOut over 0.4s and let the box height follow the line count, so no word jumps. Hold every state for at least 1.2s. Draw the outline (3px #2f6bff) from 0.55s, pop eight 18px handles at 1.25s with back.out(2.4), and keep the 28px W and H label under the box updating every frame. Lock the cursor tip to the handle it grabbed: right-middle at 2.1s, bottom-right corner at 5.6s, and turn the held handle solid blue.

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 canvas, the box and the layout function. Fade the box at 7.3–7.7s, shrink the four words into a 44px tagline at 7.9–8.5s, then land the 150px mark and the Glyph wordmark by 8.75s and hold them still. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.

Full recipe

Why it works

The box works as a small layout engine: one width W goes in, and the line breaks, font size, box height, size label and cursor position all come out of it on the same frame, so the viewer reads a real design tool resizing a text layer. Each state is held for at least 1.2s: one line, two lines (Captions that / keep up), three lines (Captions / that keep / up), then two lines again at 1.45x the size. A word never jumps. When a break changes, every word eases to its new place over 0.4s and the box height follows the line count. The cursor tip stays on the handle it grabbed, the handle turns solid blue while it is held, and the W and H label counts down and up with the drag, so cause and effect sit in the same place on screen. The wrap rule is short enough to describe in one sentence: one line if it fits, two lines if both halves fit, otherwise fill each line greedily. The film uses one accent color, blue #2f6bff, on a light dotted canvas, so the outline and the handles are the only saturated marks. After the last drag the box fades, the title shrinks into the 44px tagline line and the Glyph mark and wordmark settle above it, so the same type carries the film from start to end.

Spec

Timing
Film 11s. Words rise 0.15–1.25s (0.85s each, 0.1s stagger); outline draws 0.55–1.4s, fill fades in 1.0–1.5s; eight handles pop 1.25–2.0s (0.4s each, 0.05s stagger); size label fades in 1.7–2.1s; cursor flies in 1.5–2.1s and presses the right-middle handle at 2.1s; drag A 2.3–3.0s (W 1280→980, one line to two lines); drag B 4.0–4.7s (W 980→690, two lines to three); release at 4.8s; cursor moves to the bottom-right corner 4.95–5.6s and presses at 5.6s; drag C 5.85–6.65s (W 690→1260, text grows 1.0x→1.45x and returns to two lines around 6.3s); release 6.7s, cursor leaves 6.7–7.3s; box fades 7.3–7.7s; chrome fades 7.9–8.3s; title shrinks into the tagline 7.9–8.5s; mark 8.3–8.75s, wordmark letters 8.28–8.74s; the lockup holds still 8.75–11s
Easing
Drags A and B use power2.inOut and drag C uses power1.inOut; a line-break change eases each word with power3.inOut over 0.4s; words rise and settle with expo.out; the outline draws with power2.inOut; handles pop with back.out(2.4); cursor approach uses power3.out, the corner move power2.inOut and the exit power2.in; title to tagline uses expo.inOut over 0.6s; the mark uses back.out(1.8) and the wordmark letters power3.out
Camera
Locked, flat 2D with no camera move. The box always scales from its centre at (960, 520), so both edges move when a handle is dragged and the composition stays centred. The font size itself grows 1.45x during drag C and the box height follows the line count
Subject
Title Captions that keep up in Inter 700, tracking −0.04em, line height 1.04, sized so one line fits a 1150px measure (about 116px); box starts at 1280x255px with 60px side padding and 66px top and bottom padding; 3px #2f6bff outline, fill rgba(47,107,255,0.055), eight 18px white handles with a 3px blue border and 3px radius; label pill under the box with 28px 600 white text, W 1280 · H 255, rewritten every frame; cursor a 46x64px black arrow with a white outline, scale 0.86 while pressed; final box 1260x488px with the title at about 170px; tagline 44px #5d5d66 centred at y 650; mark 150px blue squircle with a white G, wordmark Glyph at 140px weight 700 and −0.045em tracking, gap 38px, row centred at y 450
Sync
Width, line breaks, font size, box height, label text and handle positions are all computed from one render(t), so they change on the same frame; the cursor tip is locked to its handle through every drag; the line break changes the moment the inner width (W − 120px) no longer fits the line; the handle turns solid blue 0.02s after the press; the box is gone at 7.7s before the title starts to move at 7.9s, and the mark lands at 8.3s after the tagline words have arrived
Style
Background #eceef1 with a 40px grid of dots rgba(30,44,74,0.2), a faint white centre glow and a vignette reaching 10% at the edges; one accent blue #2f6bff, ink #0e1014, grey #5d5d66; Inter throughout; white tool chrome (breadcrumb, zoom pill, Share button, six-tool bar) with 16–24px corners and soft shadows; no film grain

Prompt

Build an 11-second, 1920x1080, 30 fps light film called Selection Box Animation for a fictional product, Glyph (an AI captions tool), with HyperFrames and one paused GSAP timeline. Canvas #eceef1 with a 40px grid of faint dots rgba(30,44,74,0.2) and a soft vignette; one accent color, blue #2f6bff; ink #0e1014; font Inter. The title Captions that keep up is four absolutely positioned word spans, Inter 700, tracking −0.04em, line height 1.04, sized so the whole line fits a 1150px measure (about 116px). Measure each word once per frame with offsetWidth at 400px and scale it. Put all state in one render(t) function driven by a linear proxy tween from 0 to 11s, with no CSS animations. Box: centred at (960, 520), width W(t), height = lines x 1.04 x font size + 132px, drawn as an SVG rect with a 3px stroke, pathLength 1 and stroke-dashoffset, a fill rgba(47,107,255,0.055), eight 18px white handles with a 3px blue border, and under it a blue pill label with 28px 600 white text, W 1280 · H 255, rewritten every frame from W and H. W(t): 1280 until 2.3s; to 980 over 2.3–3.0s (power2.inOut); hold; to 690 over 4.0–4.7s (power2.inOut); hold; to 1260 over 5.85–6.65s (power1.inOut) while the font scale k = 1 + 0.45c² grows to 1.45, where c is the eased drag progress. Wrap rule from W and k with inner width W − 120: one line if it fits; else two lines Captions that / keep up if both fit; else fill lines greedily, which gives Captions / that keep / up. When the breaks change, find the latest change in the last 0.4s by evaluating the rule at earlier times, and ease each word from its old to its new place with power3.inOut over 0.4s; the box height follows the blended line count. Timeline: words rise 0.15–1.25s (y 38→0, blur 12→0, expo.out, 0.1s stagger); outline draws 0.55–1.4s, fill fades in 1.0–1.5s; handles pop 1.25–2.0s (back.out(2.4), 0.05s stagger, clockwise from top left); label fades in 1.7–2.1s. Cursor: a 46x64px black arrow with a white outline flies in 1.5–2.1s on a curved path (power3.out) to the right-middle handle, presses at 2.1s (scale 0.86, the handle turns solid blue and grows 1.35x), stays locked to the handle through both drags and releases at 4.8s; it moves to the bottom-right corner 4.95–5.6s (power2.inOut), presses at 5.6s, rides the corner through the last drag, releases at 6.7s and leaves by 7.3s. Hold each state at least 1.2s. The box fades 7.3–7.7s and the tool chrome (breadcrumb, zoom, Share, bottom bar of six tools) fades 7.9–8.3s. During 7.9–8.5s the four words move and shrink into one 44px line in #5d5d66 centred at y 650 (expo.inOut): that line is the tagline. The lockup lands after it: a 150px blue squircle mark with a white G pops in 8.3–8.75s (back.out(1.8)) and the word Glyph at 140px, weight 700, tracking −0.045em, rises letter by letter 8.28–8.74s (power3.out, 0.025s stagger), 38px gap, row centred at y 450. Everything is still from 8.75s to the end. Soft shadows on the chrome cards, no film grain.

People describe it as

  • A text box gets dragged narrower and the words re-wrap live
  • A design-tool selection box with handles and a W and H readout
  • The headline grows back when the box is dragged out from its corner

Often confused with

  • Wireframe Re-layoutWireframe Re-layout swaps a whole layout: frames drift into a new grid and then fill with content. Selection Box Animation keeps one text layer, and the width of its box drives the line breaks and the font size.
  • Multiplayer Cursor AnimationMultiplayer Cursor Animation shows named cursors selecting, commenting and reordering items. Here one cursor grabs resize handles, and the dragged width changes the text inside the box.
Recipe file (.md)

FAQ

What is a selection box animation in a product film?

It shows an object selected the way a design tool does: an outline with handles and a size readout. When the box is resized, the content inside it changes with it, which makes the feature feel like something a person controls. The text, the line breaks and the font size all respond to the box.

How do you make the text reflow look live?

Compute the layout from the box width on every frame and ease each word to its new position over about 0.4s when a line break changes. Keep the box height tied to the line count, hold each state for at least 1.2s and update the size label from the same width, so the drag and the result stay in step.

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