Guides / Websites

Landing-page motion pack: 12 prompts that make Claude build a hero, reviews, pricing and checkout that move

12 landing-page animations (hero reveal, sale pings, review shuffle, price roll…), each built by Claude from one prompt in HTML/CSS/JS. All 12 prompts inside.

Watch the reel on InstagramComment #動效 to get this guide

Is the landing page you made with Claude sitting completely still? Claude can do motion. We just hadn't described the motion clearly.
This is the full version of the "landing-page motion pack" from the Reel: 12 animations, from the hero headline down to the checkout button, each one written by Claude from a single prompt in plain HTML / CSS / JS with no libraries. All 12 prompts are below. Paste one into claude.ai or Claude Code and you get the same thing.
The demo brand, LAN Tea Lab (嵐 LAN 茶研), is a fictional cold-brew tea brand. Every review, order, revenue figure and price inside the cards is sample content, not real.

01The result first: what the 12 animations look like

Our motion-pack gallery page: the title above two cards, 01 hero reveal and 02 word rotator
The gallery Claude built: each animation is a 640×560 card that plays and loops on its own as soon as you open the file.

The 12 animations follow a landing page from top to bottom: hero, social proof, features, process, results, pricing and finally checkout. Each one is one prompt and one HTML file, so you can take any of them on its own.

  1. 01 Hero reveal: the headline arrives word by word from a blur, then a dashboard slides up. The first 3 seconds of any landing page.
  2. 02 Word rotator: the orange pill in the middle of the headline swaps its word every 0.7 s. A hero headline that speaks to every kind of customer.
  3. 03 Sale pings: order notifications drop onto a phone lock screen one by one while today's revenue counts up beside it. Social proof for a shop page.
  4. 04 Review shuffle: three stacked testimonial cards; the front one flies off and tucks in at the back. For when a boring grid of reviews won't do.
  5. 05 Count-up stats: a repeat-rate donut, revenue, rating and a conversion curve all run together. A results block that builds trust.
  6. 06 Bento build: five feature tiles snap into place, each with its own little animation. Features without a bullet list.
  7. 07 Cursor tour: a fake cursor clicks a button, types and creates a project, with a camera push-in. Show a SaaS product without recording your screen.
  8. 08 Process draw: a glowing line draws through three steps and ticks each one. A "how we work together" block.
  9. 09 Before / after: a 1999-style old site against the clean redesign, with the divider dragging itself back and forth. Redesign case studies and portfolios.
  10. 10 Price roll: click "Yearly" and every digit rolls like an odometer to the new price. Makes yearly feel like the better deal.
  11. 11 Us vs them: a comparison table appears row by row, crosses for the others, ticks for us. The block right before pricing.
  12. 12 Click → success: press the button, loading, orange tick, confetti, "You're in!". The last click on the page.

02How to use the 12 prompts (3 steps)

  1. Open claude.ai (or Claude Code) and start a new chat.
  2. Pick one of the prompts below and paste the whole thing. Claude returns a single HTML file; save it as .html and open it in a browser, and it plays and loops on its own.
  3. Swap the brand name, copy and numbers in quotes for your own and ask for changes one at a time: "change the headline to X", "make the accent colour #1D4ED8", "slower".

Every prompt is self-contained; you don't need to paste anything before it. All 12 start with the same "shared spec" paragraph, which is why the 12 cards look like one set.

03The shared spec: what the first paragraph of every prompt does

The first paragraph is identical in all 12 prompts. It is the key to the whole pack, and it is the format to copy when you write a new animation of your own.

  1. "Plain HTML / CSS / JS, no libraries": one file is the finished product. Nothing to install, opens anywhere.
  2. "A 640×560 stage inside an 8px white frame": a fixed size, so all 12 cards match. Every coordinate is measured from the stage's top-left corner, so Claude never has to guess where things go.
  3. "Inter, headlines at weight 900": bold, big type that stays readable at phone size. Inter and Noto Sans TC are both free, open-source fonts on Google Fonts.
  4. "Accent #EE5A2F, ink #121212": one orange for emphasis, everything else black, white and grey. That is the secret of the clean Linear / Stripe look.
  5. "Use requestAnimationFrame and compute every element's state from the elapsed time t, no chained setTimeouts": the most important line. Every frame is a function of time, so it plays identically every time and records to video exactly.
  6. "2.6 s build, 1.5 s hold, 0.35 s fade, restart from t=0": motion with an ending and a pause is readable, and the loop doesn't jolt.
  7. "easeOutCubic for easing, easeOutBack for pops": fast-then-slow feels natural, and a pop that slightly overshoots and settles is what makes things feel like they snap into place.

For an animation that isn't one of the 12, use this all-purpose version. Replace the [ ] parts and describe the motion in the last sentence.

All-purpose motion prompt (replace the [ ] parts)
Make a [animation name, e.g. price roll] animation as a single HTML file. Plain HTML / CSS / JS, no libraries. The scene is one 640×560 rounded card centred on a #ECEBE7 warm-grey background; fonts Inter (and Noto Sans TC for Chinese), headlines at weight 900; accent colour [your brand colour, e.g. #EE5A2F], everything else black, white and grey. The content is [your brand]'s [section, e.g. a three-plan pricing table], copy: [your copy]. Animate with requestAnimationFrame, computing every frame from elapsed time: 2.6 s build, 1.5 s hold, fade out, loop forever; [describe the motion, e.g. after clicking "Yearly", every digit rolls forward like an odometer to the new price]. It must still look clear and good at phone size.

04Hero: 01 Hero reveal, 02 Word rotator

The hero is the most worthwhile place for motion because everyone sees it. 01 brings the headline in word by word and slides a dashboard up from the bottom; 02 keeps swapping the word in the middle of the headline, so one sentence sells four benefits.

01 Hero reveal
Make a "landing-page hero headline reveal" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (headlines at weight 900; add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t (no chained setTimeouts): 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever. Easing easeOutCubic, pops easeOutBack.

Card content (background #FAFAF7):
1. A 40px browser bar at the top (#F3F2EE, bottom border), three small grey dots on the left and a grey URL pill "lan-tea.com" in the middle (monospace).
2. At y=62, a centred white pill badge: a small orange dot + "New · AI builds your landing page". Fades in and moves up 10px between t=0.05–0.35 s.
3. At y=104, a centred three-line headline, 52px, weight 900, line-height 1.2: "Good design" / "sells" "while" / "you" "sleep.", with "sells" in orange. Each word group is an inline-block segment, 5 segments in total; segment i starts at 0.22+0.13×i s and over 0.45 s goes from blur(14px), 26px lower and transparent to sharp, in place and opaque.
4. At y=296, a grey sub-line "Loads fast, looks professional, turns passers-by into customers." Fades in and moves up between 0.95–1.35 s.
5. At y=332, two centred buttons: a black pill "Start free" and a text button "▶ Watch demo", fading in and moving up between 1.05–1.45 s.
6. At y=404, a 520×220 white dashboard card (radius 18, shadow) slides up from 200px below between 1.3–1.95 s; it is fine for its lower half to be cut off by the bottom of the stage. Inside: a small label "Revenue this month" + a small "Sample data" tag, a big number "$" counting from 0 to 1,482,600 (1.4–2.4 s, thousands separators), then adding about 2,400 per second so it looks live; below the number (dashboard y≈100–150) 9 small 16px-wide bars popping up from 1.5 s at 0.06 s intervals (the last one orange and tallest), then breathing gently; on the right a 170×140 orange gradient block with "LIVE" in the top-left corner and a white line chart drawing itself between 1.6–2.4 s.
End frame of 01 Hero reveal: a browser card with the three-line headline above a sample revenue dashboard
01 at the end of its build (2.6 s): every word in place, the dashboard revenue still ticking up. Sample data.
02 Word rotator
Make a "hero headline with a rotating keyword" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (headlines at weight 900; add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever. Easing easeInOutCubic.

The card is dark: #111 base with a very faint warm radial glow slightly below centre (#2A1710 → #111).
- Top-left, small monospace text "HERO HEADLINE · 4 versions" in dark grey.
- Three centred lines, all 60px weight 900: line one in white "We design" (y=118); line two is an orange rounded pill (92px tall, radius 24px, y=212) holding the rotating word; line three in grey #8C8A86 "that sells." (y=328).
- The rotating words, in order: "landing pages" → "brand identities" → "pitch decks" → "launch films", switching at 0.55, 1.25 and 1.95 s. Each switch takes 0.34 s: the old word slides up 80px, goes transparent and blur(8px); the new word slides up from 80px below and sharpens. The pill width fits the current word plus 72px of padding, transitions smoothly between widths, and the pill scales up 5% at the midpoint of each switch.
- The pill has an orange outer glow (box-shadow 0 0 60px rgba(238,90,47,.5)) whose strength breathes slowly with a sine wave.
- At y=470, 4 centred progress dots: the current one is a 28px-wide orange bar, the others 8px grey dots, following the switches.
Left: 02 Word rotator, the middle word in a glowing orange pill; right: 03 Sale pings, four orders on a phone
Left: 02 as it switches to the second word. Right: 03 after all four orders; revenue and visitors move too.

05Social proof: 03 Sale pings, 04 Review shuffle, 05 Count-up stats

These three all make numbers and reviews move on their own. Note that all three prompts include a "Sample data" or "Sample content" tag: fake orders and reviews on a real site are deception, so these are for portfolios and demos only.

03 Sale pings
Make an "e-commerce live order notifications" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

Card background #F3F2EE.
Left: a phone drawn in CSS (240×500, radius 46, 8px black bezel; the screen is a top-to-bottom gradient #4A2414 → #1B1311 → #11131D with a dynamic island at the top). The lock screen shows "Tuesday 21 October" and a big "9:41" (Inter 64px).
Notifications: 4 order notifications appear in turn at 0.25, 0.8, 1.35 and 1.9 s. Each is a translucent light-grey rounded card (60px tall, radius 16, appears over 0.42 s; the stack starts at y=172 inside the phone screen, under 9:41): on the left an orange 34px square app icon with "L", title "New order · $680", sub-line "Taichung · Cold-brew gift box ×2", "now" in the top-right. A new notification drops in from 18px above, scaling from 0.9 to 1 (easeOutBack), lands on top, and pushes the older ones down 68px (smoothly). The other three: $1,280 Kaohsiung · Pour-over starter kit, $450 Taipei · Oolong tea bags ×3, $2,160 Hsinchu · Mid-autumn gift box.
Right: three white cards (radius 20, soft shadow):
1. "Revenue today" + a small "Sample data" tag; the big number starts at $48,320 and, each time an order arrives, adds that order's amount over 0.5 s (thousands separators); below it a small green pill "▲ 18% vs yesterday"; at the bottom an orange line chart with a faint orange gradient area that grows one segment to the right per order, with a white-ringed orange dot at the tip.
2. "Live visitors": a breathing green dot on the left and a big number on the right starting at 128 that jumps on each order (+3, −1, +5, +2).
3. "Top seller today" "Cold-brew gift box": an orange progress bar growing slowly from 42% to 78%, percentage shown top-right.
04 Review shuffle
Make a "customer review cards shuffle" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

The card is dark #111 with a small outlined tag "SAMPLE · demo content" in the top-right corner.
In the middle (left 90, top 150) are 3 stacked white review cards (460×220, radius 22, deep shadow, transform-origin bottom centre): the front one at full size; the second at scale 0.93 and 20px higher; the third at scale 0.86 and 40px higher. The cards behind get a translucent black overlay (0.12 / 0.24) to darken them.
Each card: 5 orange stars top-left, one quote at 25px weight 900, a coloured round avatar bottom-left (one letter inside) with the name and role beside it.
Quotes:
1. "Bookings filled up in the first week." Ms. Lin · florist studio owner (orange avatar "L")
2. "The best-looking page we've ever had." Mr. Chen · coffee brand owner (blue "C")
3. "Like hiring a big agency for a fraction of the price." Ms. Wang · startup marketing (green "W")
Shuffle: once at 0.95 s and once at 1.9 s, 0.55 s each. In the first half, the front card flies 360px to the left and rotates −14°; in the second half it flies back while shrinking and darkening, and tucks in at the back (lowest z-index). Meanwhile the second card scales up to the front and the third rises to the second position.
The first card is in front at t=0; after that, each card becomes the front card when its shuffle starts (0.95, 1.9 s), and from that moment +0.2 s its 5 stars pop in one by one (0.07 s apart, easeOutBack, scaling from 0.4).
Centred below the cards: orange "★ 4.9" + grey "average rating · 2,140 reviews", then 3 pager dots, the current one a 22px orange bar.
05 Count-up stats
Make a "results stats count-up" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever. Numbers use easeOutCubic.

Inside the white card are 4 light-grey tiles (#F4F3EF, radius 20, 1px border):
1. Big top-left tile (300×316) "Repeat rate" + a small "Sample data" tag top-right: an SVG donut (radius 78, stroke 18, grey track) whose orange arc grows from 0 to 76% (0.15–1.7 s, round caps), with a big centred number 0% → 76% (Inter 46px). At 1.6 s a faint orange pill "+12% this quarter" pops up underneath.
2. Top-right tile (288×150) "Revenue": $0 → $24.8M (0.2–1.8 s); 7 small bars pop up in turn at the bottom right, the last one orange and tallest, placed below the number so they never overlap it.
3. Middle-right tile (288×150) "Rating": 0.0 → 4.9 (small grey "/ 5" after it); 5 stars below, with the orange stars' width growing with the score on top of grey stars; grey "12k reviews" bottom-right.
4. Bottom wide tile (600×188) "Conversion rate   last 30 days": a smooth orange curve rising to the right, drawn from left to right between 0.4–2.0 s (stroke-dashoffset), with a faint orange gradient area below it growing along with the line via clipPath, a white-ringed orange dot at the tip with a breathing halo; at 1.95 s a small black tooltip "● Conversions +38%" pops up top-right.
Left: 04 Review shuffle, a white testimonial card with 4.9 below; right: 05 Count-up stats, a 76% donut and a curve
Left: 04 just after the second card shuffles to the front. Right: 05 fully built, the strongest card. Sample data.

06Features: 06 Bento build, 07 Cursor tour

06 is the bento grid everyone uses now, with a small animation in every tile. 07 is the unusual one: instead of a screen recording, a fake cursor acts out the product flow, and even the camera push-in is written into the prompt.

06 Bento build
Make a "bento feature tiles snapping into place" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

The card is dark #0E0E0E with a 360px orange radial glow drifting slowly behind the tiles (sin/cos movement).
Tiles (#191919, 1px #2A2A2A border, radius 20): column width 192, gap 12, margin 20. Row one is 250 tall: one tile spanning two columns + one tile; row two is 258 tall: three tiles. Each tile has a white 18px bold title + a grey 12px description in its bottom-left corner.
The 5 tiles enter in turn (0.08 s apart, 0.5 s each): from 36px lower, scaled to 0.86 and transparent, popping into place with easeOutBack.
1. Big tile "Writes your copy / one line becomes an on-brand headline": a dark input box at the top with small monospace text "HEADLINE · auto-generated", and below it "Cold-brewed 8 hours, at your door Friday." typing out letter by letter (0.55–2.1 s) with a blinking orange caret.
2. "Live data / visitors see it the moment they land": 5 bars grow in turn, the last one orange and tallest, then float gently up and down.
3. "200+ integrations / payments, shipping and LINE all plug in" (small outlined tag "Sample" top-right): a white square (with a small black square inside) pops in the middle, and 8 coloured small squares spread out from the centre and orbit it slowly (elliptical path).
4. "Team collaboration / comments and edits on one page": 4 coloured 40px round avatars (J, P, S, Y; the first 12px from the tile's left edge, 33px apart, every letter visible) slide in from the left and overlap, with a dark-grey small pill "+12" at the far right that must not overlap the avatars.
5. "Bank-grade encryption / your customers' data stays safe": an orange line-art shield draws itself with stroke-dashoffset (0.85–1.55 s), then a tick draws inside it.
07 Cursor tour
Make a "fake cursor demos a SaaS product" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever. Cursor movement uses easeInOutCubic.

Draw a light-themed app (everything inside one 640×560 app container, which is later scaled as the camera):
- A 132px sidebar (#F3F2EE): a small black logo "L" + "Studio", and the menu "Home, Projects (selected), Templates, Team, Settings".
- Main area: breadcrumb "Studio / Projects", big title "Projects", grey "2 in progress · updated today", and a black pill button "+ New project" top-right.
- Three project cards (142 wide, 98px-tall thumbnail, radius 12): "Brand refresh" with a black-grey gradient, "Q4 campaign" with a blue gradient, and a third dashed-outline empty slot with "+".
- A "Recent activity" list of 3 rows: coloured dot avatar + "Jia-ying commented on "Brand refresh"", "Bo-han shared "Q4 campaign"", "Si-yu uploaded 12 assets" + a time on the right.
The cursor (black arrow SVG with a white edge) lives inside the app container. Script:
1. 0.08–0.55 s: moves from the bottom-right corner to "+ New project"; clicks at 0.6 s (button scales to 0.94, an orange ring ripples out from the click point).
2. 0.5–0.9 s: camera push-in, scaling the app container to 1.32× around (420px, 200px).
3. 0.68–0.95 s: a 300×178 white dialog "New project" pops up (over a 28% black backdrop) with a "Name" input and "Cancel" / "Create" buttons.
4. The cursor moves to the input and clicks at 1.18 s (the input's border turns orange with a faint orange halo); 1.22–1.6 s types "Spring launch" letter by letter with a blinking caret.
5. The cursor moves to "Create" and clicks at 1.9 s; 1.95–2.12 s the dialog shrinks and fades while 1.95–2.4 s the camera pulls back to 1×.
6. 2.08–2.5 s: the empty slot becomes a new orange gradient card "Spring launch / just created", popping in with an orange outline that then fades away; at 2.2 s a new row "You created "Spring launch"" slides into the top of Recent activity and pushes the other rows down.
Left: 06 Bento build, five dark feature tiles; right: 07 Cursor tour zoomed into the New project dialog
Left: 06 with all five tiles in place and the headline typed. Right: 07 at 0.95 s, camera at 1.32x, dialog open.

07Process and results: 08 Process draw, 09 Before / after

08 strings the three "how we work together" steps onto one glowing line. 09 is the best trick for portfolios and redesign case studies: a deliberately ugly 1999-style site underneath, the redesigned page on top, and a divider that drags itself back and forth.

08 Process draw
Make a "how we work: one line draws through every step" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

The card is dark #0E0E0E with a touch of warm radial glow at the top.
- 3 nodes at (110,118), (320,118), (530,118): 54px circles with a dark-grey border and grey numbers 1, 2, 3 in the middle.
- One SVG path "M110 118 C170 18 260 18 320 118 C380 218 470 218 530 118" (a wave that arches up, then dips down). Underneath it, a dark-grey dashed line as the track. On top, a 4px orange line with a feGaussianBlur glow filter, drawing from left to right between 0.2–2.0 s with easeInOutCubic (getTotalLength + stroke-dashoffset), with a glowing white dot at the tip (getPointAtLength).
- When the line reaches a node (0.2, 1.1, 2.0 s), the node is covered by a solid orange circle with a white tick, popping from 0.5× with easeOutBack; the border turns orange with an orange halo outside.
- Below each node, a step card (190×196, #181818, radius 18) that fades in and moves up when its node lights up, its border turning faint orange:
  STEP 01 "Brief" A 15-minute call about what you sell.
  STEP 02 "Design" Layout, copy and images, done together.
  STEP 03 "Launch" Domain connected, open for business.
  Each card has a small monospace STEP number, a small icon tile on a faint orange background, a 24px bold title and a grey description.
- At 2.05 s a white pill "● Your page is live" (green dot) pops up centred at the bottom. After that, a faint orange light dot keeps running along the path forever.
09 Before / after
Make a "website redesign before / after drag" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

Card background #EFEEEA, holding a 608×528 browser frame (radius 16) with two fully overlapping web pages:
BEFORE (bottom layer, 1999 style, deliberately ugly): grey background; a blue gradient banner with yellow text and a black drop shadow "★ Welcome to LANTEA.COM ★"; a light-grey nav bar with blue underlined links "Home | About Us | Products | Contact | Guestbook"; a big table with an outset 3D border; on the left, a green box with an inset border holding a very crude brown tea bottle drawn in CSS (white label with red "TEA"); on the right a red underlined heading "Our Products", a paragraph with far too many exclamation marks, a 3D grey button "Click here to buy" and hot-pink "NEW!! NEW!!"; a yellow marquee "★★ New arrivals ★★ Free shipping over $1,000 ★★ Order now ★★" scrolling left forever; "You are visitor no. 000123" (green monospace digits on black); a small black "Before" label bottom-left.
AFTER (top layer, modern and clean): #FBFAF7 background; nav with a "LAN" logo, "Teas  Cold brew  Gifts  About" and a black pill "Shop now"; on the left a faint orange chip "New · Cold-brew oolong", a 54px weight-900 two-line headline "Good tea, / made simple" (second line orange), a grey sub-line "Steep in cold water for 8 hours, open and drink. No sugar, no bitterness.", a black button "Shop cold brew" and "How to brew →"; on the right a 264×340 orange gradient panel with a white cold-brew bottle drawn in CSS in the middle (black cap, rounded shoulders, a big "LAN" in the middle, small text COLD BREW / OOLONG, a soft shadow underneath) and a white chip "8-hour cold brew" bottom-left; at the bottom three points "100% Taiwan tea leaves" "No sugar, no additives" "Free shipping over $1,000"; a small orange "After" label bottom-right.
Drag: the top layer uses clip-path: inset(0 0 0 Xpx) so only the part right of the divider shows. The divider is a 3px white line with a shadow and a 46px white round handle "‹ ›" in the middle. Divider position (as a fraction of the width): starts at 0.9, drags to 0.14 between 0.15–1.2 s (mostly showing the redesign), drags back to 0.58 between 1.4–2.15 s, then sways slightly left and right (sin). Use easeInOutCubic.
Left: 08 Process draw, a glowing line through three ticked nodes; right: 09 Before / after, old site left of the line
Left: 08 with the line fully drawn and all three cards lit. Right: 09 with the divider at 58%, Before left, After right.

08Pricing: 10 Price roll, 11 Us vs them

10 is the hardest prompt in the set: odometer-style digits where every digit always rolls in the same direction. 11 is the comparison table you often see right before pricing: crosses for the others, ticks for us, one row at a time.

10 Price roll
Make a "plan prices rolling like an odometer" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

Card background #FAFAF8.
- A small outlined tag "Sample prices" in the top-left corner.
- A centred 200×42 toggle at the top (#EFEEEA base) with a black slider moving between "Monthly" and "Yearly" (the selected word turns white), and a small orange pill "Save 20%" to its right that pops in only while Yearly is selected.
- Three plan cards (190 wide, 15 apart): "Starter" (One landing page, launch fast; 1 page, copy + design, 7-day delivery, Figma file; button "Choose Starter") white; "Pro" (For brands serious about growth; 5 pages, A/B test variants, 3-day delivery, Figma + code) black, slightly taller, with a shadow and an orange "Most popular" tag top-right; "Team" (Multiple brands and campaigns; unlimited pages, priority scheduling, same-day edits, white-label licence; button "Choose Team") white. Each card: name, one grey line of description, small "$" + a big four-digit price (Inter 44px 700, comma after the thousands), a small line under the price ("/mo · billed monthly" on Monthly, "/mo · billed yearly" on Yearly), 4 feature lines with orange ticks, and a button at the bottom (Pro's is solid orange "Start with Pro", the others outlined).
  Prices: Monthly 1,900 / 4,900 / 9,900; Yearly 1,500 / 3,900 / 7,900.
- Odometer: each digit is a 52px-tall, 26px-wide column with overflow hidden (commas are fixed and don't roll), containing 0–9 stacked vertically three times (30 cells). Switching to Yearly rolls each column forward from the monthly digit to the yearly digit + 10; switching back rolls forward again to the monthly digit + 20, so it always turns the same way and at least one full turn. Each column is delayed 0.05 s and each card a further 0.04 s; each roll takes 0.62 s (easeInOutCubic) with a little blur while rolling.
- Fake cursor script: 0.12–0.5 s moves to "Yearly", clicks at 0.55 s (orange ring ripple) → prices roll from 0.58 s → 0.95–1.2 s moves to the Pro card, 1.1–1.3 s the card lifts 8px (hover), 1.45–1.65 s settles back → 1.4–1.68 s moves back to "Monthly", clicks at 1.71 s, prices roll back from 1.75 s (the last column settles at about 2.6 s) → 1.85–2.25 s the cursor moves left and parks beside the toggle at (168,50), never covering "Monthly" or a price.
10 Price roll: toggle on Yearly with a Save 20% pill, plan cards at 1,500 / 3,900 / 7,900, a Sample prices tag
10 the moment the digits finish rolling to Yearly (1.6 s); the Save 20% pill has popped in. Sample prices.
11 Us vs them
Make an "us vs the others comparison table" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

The card is dark #0F0F0F.
- Header: small monospace "What you get" on the left, grey "Others" centre-right (centre x≈432), bold orange "✳ Us" on the far right (centre x≈548).
- The "Us" column has a 96px-wide orange outlined rounded column (2px border, faint orange fill, orange outer glow) growing from the top down to 392px tall between 0.05–0.5 s, then breathing slowly.
- 5 rows of 64px with dark-grey dividers: "Live in 14 days", "Unlimited revisions", "Designed for conversion", "Flat monthly fee, no surprises", "Figma source files included". Row i starts at 0.32+0.26×i s: the text fades in from 16px left; 0.08 s later the "Others" cell fades in a grey "✕" (a grey "✓" on the last row, to be honest); 0.14 s later the "Us" cell pops a 32px solid orange circle with a white tick (easeOutBack from 0.3×).
- At 1.85 s a white pill button "Switch in 2 minutes →" pops up centred at the bottom, with a faint orange sheen sweeping across it from left to right forever.

09Checkout: 12 Click → success

The last click on the page deserves a small party. This prompt even specifies the confetti physics (air drag, gravity) and that confetti must never cover the text, because the first version sprayed it straight over the words and our design check sent it back.

12 Click → success
Make a "press the button → loading → success + confetti" animation as a single HTML file.

Shared spec: plain HTML / CSS / JS, no libraries. Page background #ECEBE7 with one card in the centre: the stage (inner layer) is 640×560, border-radius 22px, overflow hidden, wrapped in an 8px white frame (frame radius 30px, soft shadow). All coordinates below are measured from the top-left corner of the 640×560 stage. Fonts: Google Fonts Inter (add Noto Sans TC if you use Chinese copy). Accent #EE5A2F, ink #121212. Position every element absolutely. Animate with requestAnimationFrame and compute each element's state from the elapsed time t: 2.6 s build, hold 1.5 s, fade the whole stage out over the last 0.35 s, then restart from t=0 and loop forever.

The card is a soft radial gradient from white to #F4F3EF. The button is centred at (320, 200): a black pill, 300 wide, 72 tall, white 21px text "Get started, it's free →", with a shadow.
Script:
1. 0.05–0.55 s: a fake cursor (black arrow, white edge) moves from the bottom-right corner onto the button; 0.45–0.6 s the button lifts 3px on hover; 0.5–0.78 s a white sheen sweeps across it from left to right.
2. 0.76–0.86 s: click (button scales to 0.95). 0.95–1.5 s the cursor moves to the card's bottom-right corner, out of the way of all text.
3. 0.82–1.08 s: the button's width collapses to a 72px circle and the text fades out.
4. 1.02–1.5 s: an orange arc spins inside the circle (loading).
5. At 1.5 s the circle turns orange, scales to 1.3× with easeOutBack and stays there; 1.55–1.78 s a white tick draws with stroke-dashoffset; after that a faint orange ring ripples outward every 1.1 s.
6. At 1.55 s burst 80 pieces of confetti (small 7–14px rectangles in #EE5A2F, #FFC24B, #4B7BFF, #2BB673, #121212, #FF8FB1), mostly fanning upward with a few downward, using seeded random numbers, with air drag (displacement = v×(1−e^(−2.2t))/2.2) and gravity, each piece rotating; each piece starts fading 1.1 s after launch and is gone by 1.8 s; gravity about 760px/s². Confetti must never cover the text: inside the text zone (x 150–490, y 266–470) confetti opacity is 0, and within 24px outside that zone it ramps from 0 to 1.
7. At 1.68 s "You're in!" appears below the circle at 54px weight 900; at 1.82 s a 20px grey line "Your login link is in your inbox."; at 1.95 s two buttons: black "Open inbox" and outlined "Back to home".
Left: 11 Us vs them, crosses for the others and orange ticks for us; right: end frame of 12 with a tick and confetti
Left: 11 with all five rows in and the button popped. Right: end frame of 12, confetti outside the text zone.

10Can a different Claude rebuild them from the prompts alone?

We worried that only the Claude that wrote the originals would understand these 12 prompts. So we ran a test: a brand-new Claude got only prompts.md, no code, and was asked to rebuild all 12 animations.

05 Count-up stats twice: our original on the left, a different Claude rebuild from the prompt alone on the right
05: the original on the left, a different Claude rebuild from the prompt alone on the right. Layout and timing match.
  1. Result: all 12 ran, with no errors in the browser console, and each was recognisably the same animation.
  2. It had to guess in a few places: where the coordinate origin was, how to do the fade-out, the plan copy, and the timing of the stars and confetti. We folded those into the prompts, which is the version you are reading.
  3. After that, 06, 10 and 12 were run again and still matched.

11Putting it on your site, and recording it as video

By default these 12 are demo cards that loop from the moment they open. To put one on a real site, make it play once when scrolled into view, and respect the user's reduced-motion setting. Paste the finished HTML back and add this:

Convert to a website section
Turn this animation into a section for a website: remove the fixed 640×560 card and frame so the width follows the container; use IntersectionObserver so it plays once from t=0 when the section scrolls into view, then stops on the end frame, with no loop and no fade-out; support prefers-reduced-motion by showing the end frame directly when the user has animations turned off; change the copy to: [your copy].
  1. For a Reel or portfolio video: open the HTML in a browser, press F11 for full screen, screen-record 10 seconds (Mac: Shift + Cmd + 5; Windows: Win + Alt + R), then crop to 9:16 or 4:5. Because the animation is computed from time, every recording is identical.
  2. To put all 12 on one page, ask Claude to "merge these 12 HTML files into one landing page in order 01 to 12, each section playing when scrolled into view".
  3. To change the brand colour, change only the #EE5A2F in the shared spec and all 12 cards change together.

12Good to know

  1. LAN Tea Lab (嵐 LAN 茶研) is a fictional brand; the orders, reviews, revenue and prices inside are all sample content. On a real site, order notifications and reviews must be genuine: fake social proof loses customers' trust and may breach advertising rules.
  2. Inter and Noto Sans TC, the fonts in the shared spec, are open-source fonts on Google Fonts and can be used commercially; for a live site, self-host the font files so loading is more reliable.
  3. An animation that loops forever drains batteries. For the production version use the prompt above to play once on scroll, and add prefers-reduced-motion.
  4. Claude's code won't be byte-for-byte identical every time, but the layout and timing will be. If you want it to match the pictures exactly, describe the one difference you see in a sentence and ask it to fix that.
  5. The prompts on this page are English translations of the Traditional Chinese originals we tested; the specs are identical, only the sample copy changed. For a Chinese page, keep the specs and swap the quoted copy.

Sources

Related guides