Skip to content
Motionboard
The headline Meet the new Margin on paper with an orange hand-drawn underline under the word new and a subline below.
Product reveal · 11s film

Underline Animation

The headline Meet the new Margin sits on paper and an orange hand-drawn underline draws under the word new. The film then moves to a document with a short checklist, where a yellow marker band sweeps behind one item and then a second, before the Margin lockup.

Motionboard shot: Hand-Drawn Underline

Seen in real launch films

Notion AI 0:02–0:05YouTube ↗
Notion AI0:02–0:05YouTube ↗
Claude Fable 50:04–0:07YouTube ↗

How to make an Underline 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

Draw the underline as a tapered filled path and reveal it with a mask, so the ends are pointed and the line looks drawn while the motion is still a stroke-dashoffset tween. On the headline Meet the new Margin (150px, weight 700) the words rise over 0.95s with expo.out from 0.3s. At 1.4s a mask stroke of 40px with pathLength 1 goes from dashoffset 1.02 to 0 over 0.5s with power2.in, so it starts slowly and finishes fast. A second, shorter sliver draws at 2.0s over 0.28s. The path is about 13px thick in the middle and sits 0.84em down from the top of the word.

For the marker, put a 400x60 SVG band behind the text of an open checklist row, with torn edges, two layers (#ffd500 at 78% and #ffc400 at 28%) and mix-blend-mode multiply. Hide it with a clip-path polygon and sweep it to polygon(0% 0%, 112% 0%, 100% 100%, 0% 100%), so the top edge leads the bottom by 12% and the front looks slanted. Band 1 sweeps at 5.2s over 0.6s and band 2 at 5.95s over 0.72s, both with power2.inOut. A toolbar pill with a yellow swatch appears at 4.75s and the swatch presses at 5.1s, just before the first sweep.

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 headline, the document card and both effects. Keep the lockup after the move: from 7.9s the Margin mark, the wordmark at 140px and the tagline settle by 8.8s and hold 2.2s. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.

Full recipe

Why it works

The underline is a tapered filled shape revealed by a masked stroke, so both ends come to a point and the edge looks drawn by hand while the reveal is a plain stroke-dashoffset tween. The ease starts slowly and finishes fast (power2.in), the way a pen accelerates across a word, and a short second stroke under the first adds the uneven second pass. The headline is the only thing on the frame and sits at 150px, so the single orange accent has one place to land. The second beat changes the subject to a document. A toolbar pill shows the marker colour being picked, so the band that follows reads as a tool in use. The band sweeps left to right with a slanted front (the top edge leads the bottom by 12%), has torn edges and a multiply blend, so the text stays dark on top and the paper shows through like real ink. The two finished items are grey and struck through, which leaves the two open items as the only places the marker can land. Each sweep takes 0.6s and 0.72s, and a hold of about 0.7s after the second lets the whole line be read.

Spec

Timing
Film 11s. Headline words rise 0.3–1.6s (0.12s stagger, 0.95s each); underline draws 1.4–1.9s; second stroke 2.0–2.28s; subline 2.25–3.05s; headline group exits 4.0–4.5s; doc card rises 4.35–5.35s, toolbar pill at 4.75s, checklist rows from 4.7s (0.08s stagger); marker swatch presses 5.1s; band 1 sweeps 5.2–5.8s and band 2 5.95–6.67s; doc exits 7.35–7.8s; lockup starts 7.9s, settles by 8.8s and holds 2.2s to the end
Easing
Headline words and lockup letters expo.out; underline power2.in (second stroke power1.in); subline and rows power3.out; marker sweeps power2.inOut; headline exit power3.in and doc exit power2.in; the camera drifts are linear (none)
Camera
Flat locked frame with a slow constant push: 1.00→1.03x over 0–4.4s on the headline beat and 1.00→1.035x over 4.4–7.4s on the doc beat; the lockup does not move
Subject
Headline Meet the new Margin at 150px, weight 700, letter-spacing -0.04em, on one line. The underline SVG sits under the word new, 110% of the word's width and 0.38em tall, viewBox 320x53 stretched to fit; the filled path is about 13px thick in the middle and pointed at both ends, revealed by a 40px mask stroke with pathLength 1 and dashoffset 1.02→0; a second sliver 0.28s long sits below it. Doc card 1260x760px, radius 26px, with an 84px title, a 28px meta line, a 26px uppercase label and four 90px rows of 44px text with 40px checkboxes (two done and struck through, two open). Marker band 400x60 viewBox, extends 16px left and 18px right of the text, two layers (#ffd500 at 78% and #ffc400 at 28%) with mix-blend-mode multiply and a clip-path polygon whose top edge leads by 12%. Toolbar pill 520x76px with three 30px swatches. Lockup: 150px rounded-square mark with an orange margin rule and a drawn white M, wordmark Margin 140px, tagline 40px
Sync
The last headline word lands at about 1.6s while the underline is already drawing (from 1.4s); the subline arrives 0.35s after the underline ends; the swatch press at 5.1s comes 0.1s before band 1 starts; band 2 starts 0.15s after band 1 ends; the wordmark underline draws from 8.3s while the letters are still settling and the tagline follows at 8.35s
Style
Paper #eeede9 with a soft white centre, doc card #fffefb, ink #17171c, one accent orange #ff5a2e for the underline and the mark's rule, marker yellow #ffd500 as a tool colour; Inter throughout (700 headline, 500 body); grain at 9% multiply and a vignette to 12% at the edges

Prompt

Build an 11-second, 1920x1080, 30 fps light product film called Hand-Drawn Underline for a fictional product, Margin (a notes and docs app). Background paper #eeede9 with a soft white glow in the centre, one accent orange #ff5a2e, ink #17171c, a marker yellow #ffd500 used only as a tool colour, font Inter. Add grain at 9% opacity with multiply blend and a vignette that reaches 12% at the edges. Use one paused GSAP timeline; keep every hidden start state as opacity 0 in CSS and tween to explicit end values. Beat 1: a one-line headline, Meet the new Margin, at 150px, weight 700, letter-spacing -0.04em, centred. Its words rise from 48px below with a 14px blur to sharp over 0.95s expo.out with a 0.12s stagger from 0.3s. Under the word new, place an SVG 110% of the word's width and 0.38em tall (viewBox 320x53, preserveAspectRatio none). Draw the underline as a tapered filled path, about 13px thick in the middle and pointed at both ends, with a slightly uneven centre line, and reveal it with a mask whose 40px stroke has pathLength 1 and stroke-dasharray 1 1: tween stroke-dashoffset from 1.02 to 0 over 0.5s with power2.in from 1.4s, so it starts slowly and finishes fast. Add a shorter second sliver below it, drawn 2.0–2.28s with power1.in. At 2.25s the subline Notes, docs and tasks in one quiet place. rises in over 0.8s (44px, weight 500, grey #5d5d66). Push the whole beat from 1.00 to 1.03x over 4.4s with no easing. From 4.0s the headline group lifts 70px, blurs 10px and fades over 0.5s power3.in. Beat 2: from 4.35s a document card (1260x760px, radius 26px, #fffefb, soft large shadow) rises from 130px below at 0.95 scale over 1.0s expo.out. Inside: a header strip with a breadcrumb Projects / Launch week and three avatars, an 84px title Launch week, a 28px meta line, a 26px uppercase label Checklist, and four 90px rows with 44px text and 40px checkboxes: Write the release notes and Update the pricing page (done, grey, struck through), Record the 30-second demo and Send the update to beta testers (open). Rows enter from 4.7s with a 0.08s stagger. A dark toolbar pill (520x76px) with three 30px swatches and the label Highlight appears above the card at 4.75s. The yellow swatch presses at 5.1s (scale 1.2 and back). Behind each open row's text put a marker band: a 400x60 SVG stretched to the text width plus 16px left and 18px right, two torn-edge layers (#ffd500 at 78% and #ffc400 at 28%), mix-blend-mode multiply, hidden by clip-path polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%). Sweep it to polygon(0% 0%, 112% 0%, 100% 100%, 0% 100%) so the front edge is slanted: band 1 at 5.2s for 0.6s and band 2 at 5.95s for 0.72s, both power2.inOut. Drift the beat from 1.00 to 1.035x over 4.4–7.4s. The card and pill exit upward 7.35–7.8s with power2.in. Lockup from 7.9s: a 150px mark (ink rounded square, orange vertical rule drawn 8.0s, white M drawn 8.1s), the wordmark Margin at 140px weight 700 rising letter by letter (0.6s expo.out, 0.05s stagger from 7.95s), the hand underline drawing under it from 8.3s over 0.4s, and the tagline Notes with room to think. at 40px fading in at 8.35s. Everything is settled by 8.8s and holds still to 11s.

People describe it as

  • A line is drawn by hand under one word of the headline
  • A yellow marker sweeps behind a checklist item
  • The underline and the highlighter are two ways of emphasising one thing on the page

Often confused with

  • Word-by-Word Text HighlightWord-by-Word Highlight changes the colour of each word in a still line from gray to white; here a stroke is drawn under one word and a marker band sweeps behind list items.
  • Line Drawing Logo AnimationPlotter-Drawn Logo draws a whole logo with a pen under a macro camera; here the drawing is one short underline and a marker band on a flat page.
Recipe file (.md)

FAQ

What is an underline animation in a product film?

An underline animation draws a line under a word as the viewer watches, to point at the one word in a headline that carries the news. In this film the line is drawn in about 0.5s, and a marker band later does the same job on a checklist.

How do you make an underline look hand drawn?

Fill a tapered shape with pointed ends and an uneven centre line, then reveal it with a masked stroke using stroke-dashoffset instead of drawing the shape directly. Ease the reveal with power2.in so it starts slowly and finishes fast, and add a shorter second stroke below the first.

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 Product reveal