# Shimmer Text Effect

Motionboard shot name: Shimmer Thinking

A user sends the prompt Build a habit tracker with streaks, and a grey Thinking… line appears in the middle of the chat with a white light band sweeping through its letters. The label changes to Planning screens… and Writing components… with the same shimmer, then the answer and a small preview card of the app replace it before the Quill lockup.

- Position in a launch film: Features
- Slug: shimmer-text-effect
- Preview video: https://media.motionboard.app/shimmer-thinking.mp4
- Recipe page: https://motionboard.app/recipes/shimmer-text-effect/
- License: MIT. Free to use in your own projects, including commercial launch films. https://github.com/krisyangdev/motionboard/blob/main/LICENSE

## How to use this recipe

You are a coding agent. The user wants this shot for their own product. Follow these steps.

1. **Know the product.** If the product is clear from the user's repo or conversation, ask nothing and start. Otherwise ask once for: product name, logo file, brand colors.
2. **Pick the output.** If the user's message says a video or their website, do that. Otherwise ask once which one they want.
   - **Video (HyperFrames).** Create a folder named `shimmer-thinking`. Download every file under "Source files" below with the curl commands, keeping relative paths. Adapt `index.html` (see "What to adapt"). Run `npx --yes hyperframes@0.8.209 check` on the untouched copy first and note its result. Preview with `npx --yes hyperframes@0.8.209 preview`, render an MP4 with `npx --yes hyperframes@0.8.209 render` (into `renders/`, named with a timestamp). The same commands are in `package.json` as `dev`, `check`, `render`; pass flags after `--`, as in `npm run render -- --quality draft`. Rendering needs network access for web fonts and GSAP.
   - **Website motion.** Port the GSAP timeline in `index.html` into the user's site, using their stack (React, Vue, Svelte, plain HTML). Build the same DOM structure, keep the timeline's durations, delays and easings exactly, and start it when the element scrolls into view (IntersectionObserver or ScrollTrigger). Respect `prefers-reduced-motion: reduce`: show the final frame as a static state and skip the movement.
3. **What to adapt.**
   - **Brand layer** (product name, logo, colors, fonts, copy): replace directly with the user's.
   - **UI layer** (the product screens, cards, windows, controls shown in the shot): rebuild the user's real UI as clean DOM, from their codebase (components, design tokens) or from a screenshot used as reference only. Never paste a screenshot into the shot.
   - **Motion** (timing, easing, camera moves, layering, stagger, order of events): keep exactly as in the source. This is what the recipe is.
   - The timeline targets UI elements by id and class, and camera moves land on fixed coordinates. Keep the ids the timeline uses, keep row counts and text lengths close to the source, and when the layout moves, update the target coordinates without changing the times.
4. **Fonts.** HyperFrames fetches Google Fonts such as Inter on its own. Some sources use macOS local fonts (PingFang, Songti via `local()`). Use the user's brand font when it can be bundled; for a system font such as SF Pro, use Inter. Check that text still fits its boxes.
5. **Verify.** Compare the render with the preview video above at the beat times in the Timing row. The beats, timing and camera should match; only brand and UI content differ.

## Spec

| Item | Value |
| --- | --- |
| Timing | Film 11s. Panel rises 0–0.9s; typing 0.3–1.05s; send pressed at 1.1s; prompt bubble springs up 1.2–2.0s; Thinking… in at 1.65s and out at 3.75s; Planning screens… 3.75–5.05s; Writing components… 5.05–6.25s; shimmer sweeps run 1.65–7.15s, one every 1.1s; chips arrive 0.3s after their label (4.05s and 5.35s, 0.1s apart); reply streams from 6.3s at 0.045s per word; preview card rises 6.55–7.25s; three checks at 7.0, 7.2 and 7.4s; streak 20→21 at 7.5–8.1s; panel fades 7.8–8.1s; lockup 8.15–8.9s and held to the end |
| Easing | Shimmer sweep none (constant speed, a drift); label fade-in expo.out over 0.4s, fade-out power2.in over 0.3s; prompt bubble back.out(1.15); send press power2.in then back.out(2.4); reply words power2.out; chips, preview card and lockup expo.out; check marks back.out(2.6); camera power1.inOut; background glows sine.inOut |
| Camera | Locked frame with one slow push: scale 1→1.05 over 0.4–7.8s (power1.inOut) around the point (800, 500), so the push leans toward the shimmer line. No cuts |
| Subject | Chat panel 1500x880px at (210, 100), 36px corners, `#121216`; 96px header; thread 640px tall; composer 1436x96px with 34px text. Prompt bubble 38px, right-aligned. Shimmer labels 92px, weight 600, at x 144 in the middle of the thread (110px line at y 330); the band is a 100° linear-gradient on a background 300% wide, base `#5b5b66`, white core, `#c4b9ff` edges, about 30% of the text wide. Spark avatar 56px at the left. Chips 28px (file names 27px mono). Reply 36px. Preview card 1000x356px: browser bar, three habit rows at 32px, a 124px streak number in a 292px box |
| Sync | One sweep value drives all three labels, so the band continues through every cross-fade; chips arrive 0.3s after their label; the avatar moves up at 6.2s while the last label leaves (6.25s) and the first reply word shows at 6.3s; the three checks land one by one and the streak number changes 0.1s after the last one |
| Style | Background `#09090b` with violet, magenta and blue glows drifting for 11s; one accent violet `#8b7bff`; panel with a 1px hairline border and a deep shadow; Inter throughout, labels at weight 600; grain at 14% overlay and a vignette reaching 50% at the edges |

## Why it works

Light moving through grey letters reads as work in progress because the motion never stops and the words stay put while it runs. The shimmer is a gradient clipped to the text: a background 300% of the text width with a white core and violet edges in the middle, and one timeline value (background-position from 100% to 0%) carries it left to right every 1.1s. The three labels share that one value, so when Thinking… gives way to Planning screens… and Writing components…, the band keeps travelling and never restarts. Contrast carries the effect: base grey #5b5b66 against pure white at 92px, which still reads on a phone. The label sits in the middle of the empty thread, and everything around it stays quiet: the prompt bubble above, small chips with the plan and the file names arriving under it, a slow camera push toward the line. The answer replaces the shimmer in the same place. The avatar moves up to the reply line, the sentence streams in word by word and a preview card rises, so the wait ends with something to look at. There is one accent colour, violet #8b7bff.

## Prompt

> Build an 11-second, 1920x1080, 30 fps dark product film called Shimmer Text Effect for a fictional product, Quill (an AI app builder chat). Background #09090b with three soft glows (violet, magenta, blue) drifting slowly for the whole film, one accent colour violet #8b7bff, font Inter. Use GSAP 3.14.2 with one paused timeline, no CSS animations. Centre a chat panel of 1500x880px at (210, 100), 36px corners, fill #121216, 1px hairline border: a 96px header (small violet mark, Habit tracker), a 640px thread and a composer of 1436x96px at the bottom with the placeholder Ask Quill…, 34px text and a round send button. The panel rises 0–0.9s with expo.out. Type Build a habit tracker with streaks into the composer over 0.3–1.05s, press send at 1.1s (scale 0.84 then back.out(2.4), one ring pulse), clear the composer and spring the prompt bubble (38px text, right-aligned, violet-tinted fill) up from the composer into the thread over 1.2–2.0s with back.out(1.15). The shimmer is the centre of the film. Stack three labels in the middle of the thread at x 144, 92px, weight 600, 110px line: Thinking…, Planning screens…, Writing components…. Fill each with linear-gradient(100deg, #5b5b66 0%, #5b5b66 40%, #c4b9ff 44%, #fff 48%, #fff 52%, #c4b9ff 56%, #5b5b66 60%, #5b5b66 100%) at background-size 300% 100%, clip it to the text (background-clip: text, transparent fill) and set background-position from one shared proxy value that runs 100%→0% in 1.1s with ease none, repeated 5 times from 1.65s, so the white band sweeps left to right through the letters and keeps moving across label changes. Put a 56px violet spark avatar at the left that turns slowly. Thinking… shows 1.65–3.75s, Planning screens… 3.75–5.05s, Writing components… 5.05–6.25s; each fades in over 0.4s with expo.out (from 14px low) and out over 0.3s with power2.in (14px up). 0.3s after each of the last two labels appears, fade in three chips under it, 28px, 0.1s apart: Today view, Streak counter, Weekly calendar, then HabitList.tsx, StreakBadge.tsx, WeekDots.tsx in a monospace face. Push the camera slowly from scale 1 to 1.05 over 0.4–7.8s around (800, 500), power1.inOut. The answer replaces the shimmer: at 6.2s move the avatar up 206px and scale it to 0.8 with expo.out, and stream the 36px reply Your habit tracker is ready with daily check-ins, streak counters and a weekly view. word by word from 6.3s, 0.045s per word. At 6.55s raise a 1000x356px preview card at x 144 (expo.out, 0.7s): browser bar with habits.quill.app, a Today list of three habit rows at 32px (Read 20 minutes 12, Morning run 8, Write 500 words 21, each with a flame and a streak count), and a 292px box with a 124px streak number 20, the label day streak and seven dots. Check the three rows at 7.0, 7.2 and 7.4s (violet fill, back.out(2.6)), then change the number to 21 at 7.5s and light today's dot. Fade the panel out 7.8–8.1s, then show the lockup: a 156px violet rounded mark with a white four-point spark, the word Quill at 176px weight 700, and the tagline Chat your idea into an app. at 40px, rising 8.15–8.9s and held still to 11s. Finish with grain at 14% overlay and a vignette.

## Often confused with

- [Skeleton Loading Animation](https://motionboard.app/r/skeleton-loading-animation.md): Skeleton Loading Animation turns data blocks into grey placeholders with a moving shimmer on a dashboard; here the shimmer runs through the letters of a status label in a chat while the AI works.
- [Chat Animation](https://motionboard.app/r/chat-animation.md): Chat Animation shows a prompt, tool steps ticking off and an app building beside the chat with the camera tight on the thread; here one large shimmering label carries the whole wait and the answer replaces it.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/shimmer-thinking/hyperframes.json (318 B)
- https://motionboard.app/source/shimmer-thinking/index.html (21.7 KB)
- https://motionboard.app/source/shimmer-thinking/package.json (305 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "shimmer-thinking/hyperframes.json" "https://motionboard.app/source/shimmer-thinking/hyperframes.json"
curl -fsSL --create-dirs -o "shimmer-thinking/index.html" "https://motionboard.app/source/shimmer-thinking/index.html"
curl -fsSL --create-dirs -o "shimmer-thinking/package.json" "https://motionboard.app/source/shimmer-thinking/package.json"
```

## index.html

```html
<!doctype html>
<html lang="en" data-resolution="landscape">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
    <style>
      :root {
        --bg: #09090b;
        --panel: #121216;
        --ink: #f4f4f8;
        --sub: #9b9bb0;
        --mut: #6f6f86;
        --line: rgba(255, 255, 255, 0.08);
        --accent: #8b7bff;
        --font-ui: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
        --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); }
      #root { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); font-family: var(--font-ui); color: var(--ink); -webkit-font-smoothing: antialiased; }
      .layer { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      .a { position: absolute; }
      svg { display: block; }

      /* ---------- backdrop ---------- */
      #bg { overflow: hidden; background: #09090b; }
      .blob { position: absolute; border-radius: 50%; }
      #b1 { left: -360px; top: -420px; width: 1400px; height: 1040px; background: radial-gradient(closest-side, rgba(104, 78, 255, 0.34) 0%, rgba(104, 78, 255, 0) 100%); }
      #b2 { left: 1180px; top: 540px; width: 1200px; height: 960px; background: radial-gradient(closest-side, rgba(190, 70, 214, 0.22) 0%, rgba(190, 70, 214, 0) 100%); }
      #b3 { left: 1260px; top: -340px; width: 1100px; height: 860px; background: radial-gradient(closest-side, rgba(52, 78, 255, 0.2) 0%, rgba(52, 78, 255, 0) 100%); }
      #b4 { left: -300px; top: 640px; width: 1100px; height: 800px; background: radial-gradient(closest-side, rgba(255, 140, 90, 0.08) 0%, rgba(255, 140, 90, 0) 100%); }

      /* ---------- stage ---------- */
      #stage { z-index: 4; }
      #cam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      #panel { position: absolute; left: 210px; top: 100px; width: 1500px; height: 880px; border-radius: 36px; background: var(--panel); opacity: 0; overflow: hidden;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 160px rgba(104, 78, 255, 0.14); }

      /* header */
      #hd { left: 0; top: 0; width: 1500px; height: 96px; border-bottom: 1px solid var(--line); }
      #hmk { left: 40px; top: 25px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #9b8cff, #6a55f0); display: flex; align-items: center; justify-content: center; color: #fff; }
      #hname { left: 104px; top: 0; height: 96px; display: flex; align-items: center; gap: 8px; font-size: 32px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
      #hname span { display: flex; color: var(--mut); }
      #hic { right: 40px; top: 32px; display: flex; gap: 28px; color: var(--mut); }

      /* thread */
      #thread { left: 0; top: 96px; width: 1500px; height: 640px; overflow: hidden; }
      #ub { right: 56px; top: 32px; padding: 22px 40px; border-radius: 32px 32px 10px 32px; background: #25223f; border: 1px solid rgba(139, 123, 255, 0.28);
        font-size: 38px; line-height: 50px; font-weight: 500; letter-spacing: -0.01em; color: #f3f1ff; white-space: nowrap; opacity: 0; transform-origin: 100% 100%; }
      #av { left: 56px; top: 357px; width: 56px; height: 56px; color: var(--accent); opacity: 0; }
      .lab { position: absolute; left: 144px; top: 330px; height: 110px; line-height: 110px; font-size: 92px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; opacity: 0;
        background-image: linear-gradient(100deg, #5b5b66 0%, #5b5b66 40%, #c4b9ff 44%, #ffffff 48%, #ffffff 52%, #c4b9ff 56%, #5b5b66 60%, #5b5b66 100%);
        background-size: 300% 100%; background-position: 100% 0%;
        -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
      .grp { position: absolute; left: 144px; top: 462px; display: flex; gap: 16px; }
      .chip { height: 62px; padding: 0 28px; border-radius: 31px; background: #1b1b24; border: 1px solid rgba(255, 255, 255, 0.1); color: #b4b4c6; font-size: 28px; line-height: 60px; font-weight: 500; white-space: nowrap; opacity: 0; }
      .chip.m { font-family: var(--mono); font-size: 27px; }
      #rep { left: 144px; top: 152px; width: 1290px; font-size: 36px; line-height: 50px; font-weight: 400; letter-spacing: -0.005em; color: #e9e9f1; }
      #rep .w { display: inline-block; opacity: 0; }

      /* preview card */
      #pcard { left: 144px; top: 268px; width: 1000px; height: 356px; border-radius: 26px; background: #17171d; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 123, 255, 0.1); }
      #pbar { left: 0; top: 0; width: 1000px; height: 52px; background: #1c1c24; border-bottom: 1px solid var(--line); }
      .dt { top: 20px; width: 13px; height: 13px; border-radius: 50%; background: #34343f; }
      #purl { left: 360px; top: 10px; width: 280px; height: 32px; border-radius: 16px; background: #121217; color: var(--sub); font-size: 18px; line-height: 32px; text-align: center; font-weight: 500; }
      #ptitle { left: 36px; top: 68px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
      #pdate { left: 172px; top: 78px; font-size: 24px; line-height: 32px; color: var(--mut); font-weight: 500; }
      .hr { left: 36px; width: 600px; height: 62px; border-radius: 16px; background: #1f1f29; }
      .hr .cb { position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #4a4a5c; }
      .hr .cf { position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0d0d12; display: flex; align-items: center; justify-content: center; opacity: 0; }
      .hr .nm { position: absolute; left: 68px; top: 0; line-height: 62px; font-size: 32px; font-weight: 550; letter-spacing: -0.01em; color: #ececf4; white-space: nowrap; }
      .hr .sk { position: absolute; right: 18px; top: 0; height: 62px; display: flex; align-items: center; gap: 4px; font-size: 30px; font-weight: 650; color: #c9c3ff; font-variant-numeric: tabular-nums; }
      #sbox { left: 672px; top: 76px; width: 292px; height: 252px; border-radius: 20px; background: #1f1f29; border: 1px solid rgba(139, 123, 255, 0.25); }
      #snum { left: 0; top: 18px; width: 292px; height: 130px; }
      #snum div { position: absolute; left: 0; top: 0; width: 292px; text-align: center; font-size: 124px; line-height: 130px; font-weight: 700; letter-spacing: -0.04em; color: #fff; }
      #slab { left: 0; top: 150px; width: 292px; text-align: center; font-size: 28px; line-height: 34px; color: var(--sub); font-weight: 500; }
      #wk { left: 40px; top: 206px; display: flex; gap: 12px; }
      #wk i { width: 20px; height: 20px; border-radius: 50%; background: #3a3a48; display: block; }
      #wk i.on { background: #6a5cd0; }

      /* composer */
      #comp { left: 32px; top: 752px; width: 1436px; height: 96px; border-radius: 32px; background: #18181e; border: 1px solid rgba(255, 255, 255, 0.1); }
      #plus { left: 24px; top: 22px; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #3a3a48; color: var(--sub); display: flex; align-items: center; justify-content: center; }
      #ph { left: 100px; top: 0; line-height: 96px; font-size: 34px; color: #6d6d80; white-space: nowrap; }
      #typed { left: 100px; top: 0; line-height: 96px; font-size: 34px; color: var(--ink); white-space: pre; font-weight: 450; }
      #typed .ch { display: none; }
      #tcar { display: inline-block; width: 0; height: 40px; position: relative; vertical-align: -9px; opacity: 0; }
      #tcar::after { content: ""; position: absolute; left: 2px; top: 0; width: 3px; height: 40px; border-radius: 2px; background: var(--accent); }
      #send { left: 1346px; top: 15px; width: 64px; height: 64px; border-radius: 50%; background: #2a2a34; color: #fff; display: flex; align-items: center; justify-content: center; }
      #ring { left: 1346px; top: 15px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }

      /* ---------- lockup ---------- */
      #end { z-index: 8; }
      #lock { left: 0; top: 0; width: 1920px; height: 1080px; display: flex; align-items: center; justify-content: center; gap: 46px; }
      #lmk { position: relative; width: 156px; height: 156px; border-radius: 40px; background: linear-gradient(135deg, #9b8cff, #6a55f0); box-shadow: 0 26px 60px rgba(120, 100, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); flex: none; opacity: 0; }
      #lglyph { position: absolute; left: 36px; top: 36px; width: 84px; height: 84px; opacity: 0; }
      #lcol { position: relative; opacity: 0; }
      #lwm { font-size: 176px; line-height: 210px; font-weight: 700; letter-spacing: -0.055em; color: #f6f6fa; white-space: nowrap; }
      #lsub { margin-top: -4px; margin-left: 6px; font-size: 40px; line-height: 50px; font-weight: 500; letter-spacing: -0.015em; color: var(--sub); white-space: nowrap; }

      /* ---------- finish ---------- */
      #fx { z-index: 9; pointer-events: none; background: radial-gradient(ellipse 85% 90% at 50% 48%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 100%); }
      #grain { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0.14; mix-blend-mode: overlay; }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="11" data-width="1920" data-height="1080">
      <div id="bg" class="layer clip" data-start="0" data-duration="11" data-track-index="0" data-layout-allow-overlap data-layout-allow-overflow>
        <div id="b1" class="blob"></div><div id="b2" class="blob"></div><div id="b3" class="blob"></div><div id="b4" class="blob"></div>
      </div>

      <div id="stage" class="layer clip" data-start="0" data-duration="8.4" data-track-index="1" data-layout-allow-overlap data-layout-allow-overflow>
        <div id="cam" data-layout-allow-overlap data-layout-allow-overflow>
          <div id="panel" data-layout-allow-overlap data-layout-allow-overflow>
            <div id="hd" class="a">
              <div id="hmk" class="a"></div>
              <div id="hname" class="a">Habit tracker<span id="hchev"></span></div>
              <div id="hic" class="a"></div>
            </div>
            <div id="thread" class="a" data-layout-allow-overlap data-layout-allow-overflow>
              <div id="ub" class="a">Build a habit tracker with streaks</div>
              <div id="av" class="a"></div>
              <div id="l0" class="lab">Thinking…</div>
              <div id="l1" class="lab">Planning screens…</div>
              <div id="l2" class="lab">Writing components…</div>
              <div id="g1" class="grp"><span class="chip">Today view</span><span class="chip">Streak counter</span><span class="chip">Weekly calendar</span></div>
              <div id="g2" class="grp"><span class="chip m">HabitList.tsx</span><span class="chip m">StreakBadge.tsx</span><span class="chip m">WeekDots.tsx</span></div>
              <div id="rep" class="a"></div>
              <div id="pcard" class="a" data-layout-allow-overlap>
                <div id="pbar" class="a"><span class="a dt" style="left:22px"></span><span class="a dt" style="left:44px"></span><span class="a dt" style="left:66px"></span><div id="purl" class="a">habits.quill.app</div></div>
                <div id="ptitle" class="a">Today</div>
                <div id="pdate" class="a">Tue, Dec 1</div>
                <div id="hr0" class="a hr" style="top:128px"><span class="cb"></span><span class="cf" id="cf0"></span><span class="nm">Read 20 minutes</span><span class="sk" id="sk0"></span></div>
                <div id="hr1" class="a hr" style="top:198px"><span class="cb"></span><span class="cf" id="cf1"></span><span class="nm">Morning run</span><span class="sk" id="sk1"></span></div>
                <div id="hr2" class="a hr" style="top:268px"><span class="cb"></span><span class="cf" id="cf2"></span><span class="nm">Write 500 words</span><span class="sk" id="sk2"></span></div>
                <div id="sbox" class="a">
                  <div id="snum" class="a"><div id="n20">20</div><div id="n21" style="opacity:0">21</div></div>
                  <div id="slab" class="a">day streak</div>
                  <div id="wk" class="a"><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i id="wkt"></i></div>
                </div>
              </div>
            </div>
            <div id="comp" class="a" data-layout-allow-overlap></div>
          </div>
        </div>
      </div>

      <div id="end" class="layer clip" data-start="8" data-duration="3" data-track-index="2" data-layout-allow-overlap>
        <div id="lock" class="a" data-layout-allow-overlap>
          <div id="lmk"><div id="lglyph"><svg width="84" height="84" viewBox="0 0 100 100"><path d="M50 6C53 34 66 47 94 50 66 53 53 66 50 94 47 66 34 53 6 50 34 47 47 34 50 6Z" fill="#fff"/></svg></div></div>
          <div id="lcol"><div id="lwm">Quill</div><div id="lsub">Chat your idea into an app.</div></div>
        </div>
      </div>

      <div id="fx" class="layer clip" data-start="0" data-duration="11" data-track-index="3" data-layout-ignore>
        <svg id="grain" width="1920" height="1080" viewBox="0 0 1920 1080" aria-hidden="true"><filter id="gn" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" seed="7" stitchTiles="stitch" /><feColorMatrix type="saturate" values="0" /></filter><rect width="1920" height="1080" filter="url(#gn)" /></svg>
      </div>
    </div>

    <script>
      /* ---------- icons (lucide-style) ---------- */
      const ICON = {
        spark: '<path d="M11 3c.6 4.8 2.2 6.4 7 7-4.8.6-6.4 2.2-7 7-.6-4.8-2.2-6.4-7-7 4.8-.6 6.4-2.2 7-7Z"/><path d="M19 15c.3 2.4 1.1 3.2 3.5 3.5-2.4.3-3.2 1.1-3.5 3.5-.3-2.4-1.1-3.2-3.5-3.5 2.4-.3 3.2-1.1 3.5-3.5Z"/>',
        up: '<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',
        plus: '<path d="M5 12h14"/><path d="M12 5v14"/>',
        check: '<path d="M20 6 9 17l-5-5"/>',
        flame: '<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/>',
        history: '<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>',
        down: '<path d="m6 9 6 6 6-6"/>',
        more: '<circle cx="5" cy="12" r="1.2"/><circle cx="12" cy="12" r="1.2"/><circle cx="19" cy="12" r="1.2"/>'
      };
      const ic = (n, s, sw, st) =>
        '<svg width="' + s + '" height="' + s + '" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="' + (sw || 1.7) +
        '" stroke-linecap="round" stroke-linejoin="round"' + (st ? ' style="' + st + '"' : "") + ">" + ICON[n] + "</svg>";
      const $ = (id) => document.getElementById(id);

      /* ---------- header, avatar, composer ---------- */
      $("hmk").innerHTML = ic("spark", 28, 2);
      $("hchev").innerHTML = ic("down", 24, 1.8);
      $("hic").innerHTML = ic("history", 32) + ic("more", 32);
      $("av").innerHTML = ic("spark", 56, 1.8);

      const MSG = "Build a habit tracker with streaks";
      let ch = "";
      for (let i = 0; i < MSG.length; i++) ch += '<span class="ch" id="ch' + i + '">' + MSG[i] + "</span>";
      $("comp").innerHTML =
        '<div id="plus" class="a">' + ic("plus", 28, 1.8) + "</div>" +
        '<div id="ph" class="a">Ask Quill…</div>' +
        '<div id="typed" class="a">' + ch + '<span id="tcar"></span></div>' +
        '<div id="ring" class="a"></div>' +
        '<div id="send" class="a">' + ic("up", 32, 2.4) + "</div>";

      /* ---------- reply words ---------- */
      const REPLY = "Your habit tracker is ready with daily check-ins, streak counters and a weekly view.";
      const words = REPLY.split(" ");
      $("rep").innerHTML = words.map((w, i) => '<span class="w" id="w' + i + '">' + w + "</span>").join(" ");

      /* ---------- preview card ---------- */
      ["0", "1", "2"].forEach((i) => { $("cf" + i).innerHTML = ic("check", 20, 3.2); });
      [12, 8, 21].forEach((n, i) => { $("sk" + i).innerHTML = ic("flame", 26, 2) + n; });

      /* ---------- timeline ---------- */
      // One baseline tl.set per element (hidden states live in CSS), then .to() tweens with explicit end values.
      const tl = gsap.timeline({ paused: true });
      const EXPO = "expo.out";
      let seed = 26;
      const rnd = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
      const blink = (sel, t0, t1, per) => {
        let on = true;
        for (let t = t0; t < t1; t += per / 2) { tl.set(sel, { opacity: on ? 1 : 0 }, t); on = !on; }
      };

      /* backdrop drift */
      [["#b1", 90, 60], ["#b2", -110, -50], ["#b3", -90, 70], ["#b4", 80, -40]].forEach((b) => {
        tl.to(b[0], { x: b[1], y: b[2], duration: 11, ease: "sine.inOut" }, 0);
      });

      /* camera: slow push toward the shimmer line */
      gsap.set("#cam", { transformOrigin: "800px 500px" });
      tl.to("#cam", { scale: 1.05, duration: 7.4, ease: "power1.inOut" }, 0.4);

      /* panel in */
      tl.set("#panel", { y: 44 }, 0);
      tl.to("#panel", { opacity: 1, y: 0, duration: 0.9, ease: EXPO }, 0);

      /* typing */
      const N = MSG.length;
      let tprev = 0;
      for (let i = 0; i < N; i++) {
        let t = 0.3 + 0.75 * Math.pow((i + 1) / N, 0.92) + (rnd() - 0.5) * 0.01;
        if (t <= tprev) t = tprev + 0.004;
        tprev = t;
        tl.set("#ch" + i, { display: "inline" }, t);
      }
      blink("#tcar", 0.15, 0.3, 0.3);
      tl.set("#tcar", { opacity: 1 }, 0.3);
      tl.set("#tcar", { opacity: 0 }, 1.12);
      tl.set("#ph", { opacity: 0 }, 0.3);
      tl.to("#send", { backgroundColor: "#8b7bff", duration: 0.25, ease: "power2.out" }, 0.32);

      /* send press, composer clears, bubble springs up from the composer */
      const TS = 1.1;
      tl.to("#send", { scale: 0.84, duration: 0.09, ease: "power2.in" }, TS);
      tl.to("#send", { scale: 1, duration: 0.4, ease: "back.out(2.4)" }, TS + 0.09);
      tl.set("#ring", { opacity: 0.6, scale: 1 }, TS + 0.04);
      tl.to("#ring", { opacity: 0, scale: 1.9, duration: 0.5, ease: "power2.out" }, TS + 0.05);
      tl.set("#typed", { opacity: 0 }, TS + 0.12);
      tl.to("#send", { backgroundColor: "#2a2a34", duration: 0.3, ease: "power2.out" }, TS + 0.35);
      tl.to("#ph", { opacity: 1, duration: 0.4, ease: "power2.out" }, TS + 0.5);

      tl.set("#ub", { y: 560, scale: 0.92 }, 0);
      tl.to("#ub", { opacity: 1, duration: 0.2, ease: "power1.out" }, TS + 0.1);
      tl.to("#ub", { y: 0, scale: 1, duration: 0.8, ease: "back.out(1.15)" }, TS + 0.1);

      /* shimmer: three stacked labels share one phase, so the band keeps moving through the cross-fades */
      const T0 = 1.65;
      const labs = ["l0", "l1", "l2"].map($);
      const ph = { p: 100 };
      const applyPhase = () => { const v = ph.p.toFixed(2) + "% 0%"; labs.forEach((l) => { l.style.backgroundPosition = v; }); };
      tl.to(ph, { p: 0, duration: 1.1, ease: "none", repeat: 4, onUpdate: applyPhase }, T0);

      tl.set("#av", { scale: 0.6, rotation: -30 }, 0);
      tl.to("#av", { opacity: 1, scale: 1, duration: 0.5, ease: "back.out(2)" }, T0);
      tl.to("#av", { rotation: 330, duration: 4.65, ease: "none" }, T0 + 0.05);

      const LAB = [[T0, 3.75], [3.75, 5.05], [5.05, 6.25]];
      LAB.forEach((r, i) => {
        tl.set("#l" + i, { y: 14 }, 0);
        tl.to("#l" + i, { opacity: 1, y: 0, duration: 0.4, ease: EXPO }, r[0]);
        tl.to("#l" + i, { opacity: 0, y: -14, duration: 0.3, ease: "power2.in" }, r[1]);
      });
      [["#g1 .chip", 3.75 + 0.3, 5.05], ["#g2 .chip", 5.05 + 0.3, 6.25]].forEach((g) => {
        tl.set(g[0], { y: 10 }, 0);
        tl.to(g[0], { opacity: 1, y: 0, duration: 0.4, ease: EXPO, stagger: 0.1 }, g[1]);
        tl.to(g[0], { opacity: 0, y: -8, duration: 0.25, ease: "power2.in" }, g[2]);
      });

      /* answer: reply streams in word by word, avatar settles */
      const RS = 6.3, RG = 0.045;
      words.forEach((w, i) => {
        tl.set("#w" + i, { y: 6 }, 0);
        tl.to("#w" + i, { opacity: 1, y: 0, duration: 0.3, ease: "power2.out" }, RS + i * RG);
      });
      tl.to("#av", { scale: 0.8, y: -206, duration: 0.55, ease: "expo.out" }, 6.2);

      /* preview card */
      tl.set("#pcard", { y: 36, scale: 0.97 }, 0);
      tl.to("#pcard", { opacity: 1, y: 0, scale: 1, duration: 0.7, ease: EXPO }, 6.55);
      [7.0, 7.2, 7.4].forEach((t, i) => {
        tl.set("#cf" + i, { scale: 0.4 }, 0);
        tl.to("#cf" + i, { opacity: 1, scale: 1, duration: 0.4, ease: "back.out(2.6)" }, t);
      });
      tl.to("#n20", { opacity: 0, y: -26, duration: 0.25, ease: "power2.in" }, 7.5);
      tl.set("#n21", { y: 26 }, 0);
      tl.to("#n21", { opacity: 1, y: 0, duration: 0.5, ease: "back.out(1.8)" }, 7.58);
      tl.to("#wkt", { backgroundColor: "#8b7bff", duration: 0.3, ease: "power2.out" }, 7.55);

      /* out and lockup */
      tl.to("#cam", { opacity: 0, duration: 0.3, ease: "power2.in" }, 7.8);
      tl.set("#lmk", { scale: 0.85 }, 0);
      tl.set("#lglyph", { scale: 0.2, rotation: -50 }, 0);
      tl.set("#lcol", { y: 30 }, 0);
      tl.to("#lmk", { opacity: 1, scale: 1, duration: 0.65, ease: EXPO }, 8.15);
      tl.to("#lglyph", { opacity: 1, scale: 1, rotation: 0, duration: 0.6, ease: "back.out(2)" }, 8.2);
      tl.to("#lcol", { opacity: 1, y: 0, duration: 0.65, ease: EXPO }, 8.25);

      tl.set({}, {}, 11);
      window.__timelines = window.__timelines || {};
      window.__timelines["main"] = tl;
    </script>
  </body>
</html>
```
