# Skeleton Loading Animation

Motionboard shot name: Skeleton Refresh

A cursor opens the Updated menu on a sales dashboard and clicks Refresh now. The numbers, chart bars and list bars cross-fade to grey blocks in the same layout while a light band sweeps across them, then the new KPI values fade in, the chart bars grow from the baseline and the list bars grow from the left, before the Sable lockup.

- Position in a launch film: Product reveal
- Slug: skeleton-loading-animation
- Preview video: https://media.motionboard.app/skeleton-load.mp4
- Recipe page: https://motionboard.app/recipes/skeleton-loading-animation/
- 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 `skeleton-load`. 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 10.8s. Page fades in 0–0.45s; cursor flies to the status button 0.3–1.25s; click at 1.2s; menu opens 1.28–1.56s; cursor to Refresh now 1.65–2.15s, row highlight 2.0s, click at 2.2s; menu closes 2.32–2.5s; button changes to Refreshing… 2.32–2.58s; data cross-fades to skeleton 2.45–3.05s (KPI cards at 2.45, 2.52 and 2.59s, chart at 2.6s, list at 2.75s, 0.3s each); shimmer runs 2.6–6.9s with a sweep every 1.1s; KPI numbers return 5.6, 5.72 and 5.84s (0.45s); chart bars grow 6.15–7.45s, 0.09s apart; list bars grow 6.6–7.75s, 0.1s apart; veil fades in 7.7–8.15s; lockup 7.85–8.6s and holds to the end |
| Easing | Camera push and pull-back use power3.inOut; cursor x, menu open, bar growth and lockup rise use expo.out; cursor y, fades and cross-fades use power2.out; cursor release uses back.out(2); the camera drift, spinner rotation (1320° over 3.3s) and shimmer are linear |
| Camera | Wide shot of the whole page, scale 1.0 centred (960, 540), drifting to 1.03 over 0–0.95s; push-in to scale 1.4 centred (1240, 386) over 0.95–2.0s so the menu and button fill the right half; pull-back to 1.0 over 2.35–3.35s; slow drift to scale 1.06 centred (960, 530) over 3.35–7.6s while the skeleton shimmers and the data returns; at 7.7–8.2s the page scales to 0.97 under the veil |
| Subject | A sales dashboard called Sable. Top bar 76px with the mark, a breadcrumb, a 300x48px Updated 9:41 AM button and a Share button. Header Quarterly sales review at 80px. Three KPI cards 576x230px at y 252 (x 72, 672, 1272) with 88px values: Q3 net sales $5.43M to $5.87M, Orders shipped 479 to 512, Average order value $11,336 to $11,465. Bar chart card 1000x504px at (72, 506): axis $0–$2.5M at 120px per $1M, six 84px bars Apr–Sep, Q2 grey #d3c7b3 and Q3 orange #e4572e, Q3 months 1.68/1.79/1.96 to 1.79/1.94/2.14. Segment list card 752x504px at (1096, 506): five 20px bars at 680px per 2.4M, Industrial manufacturing $1.84M to $2.06M and four more rows. Menu 360px wide with three 60px rows at 26px. Skeleton blocks #ebe4d5 with radius 10–16px; chart columns 84px wide; shimmer band 340px wide, skewed 24°, white at 90% in the centre |
| Sync | The status button starts turning to Refreshing… 0.12s after the click on Refresh now and the first KPI block goes grey 0.13s after that; the shimmer starts at 2.6s while the skeleton is still fading in; the KPI numbers, chart bars and list bars each start after the group above them has begun to appear; the status button returns to Updated 9:44 AM at 5.6–5.8s together with the first new number; the lockup starts after the last list value at 7.7s |
| Style | Page `#f5f0e6`, cards `#fffdf9` with a 1px `#e6decf` line, ink `#1d1913`, one accent orange-red `#e4572e`; Inter throughout, title weight 700 with −0.04em tracking; 22px corner cards and 12–16px skeleton radii; static grain at 10% multiply and a vignette reaching 11% at the edges |

## Why it works

The skeleton keeps the layout and removes only the data. The headline, card labels, chart titles, month names, axis labels and segment names stay on screen, and only the numbers, delta chips, chart bars and list bars turn into grey blocks at exactly the same positions, so the viewer knows where each value will return. One light band sweeps across all blocks at one global angle and one speed, so the page shimmers as a single surface and the load reads as in progress. The cause comes first: a cursor opens the Updated 9:41 AM menu and clicks Refresh now, the status button changes to a spinning Refreshing… and the cross-fade starts 0.13s after that, so the viewer links the click to the grey state. The camera pushes in to the menu so its 26px labels are readable, then pulls back to the whole page and drifts in slowly during the wait. The return runs in order of importance: KPI numbers fade in with new values, the chart bars grow from the baseline, then the segment bars grow from the left, each group starting about 0.5s after the one before, so the page rebuilds from the top down. The numbers change (net sales $5.43M to $5.87M), which shows the refresh did something. The page is warm off-white with ink text and one accent colour, orange-red #e4572e.

## Prompt

> Build a 10.8-second, 1920x1080, 30 fps light product film called Skeleton Refresh for a fictional product, Sable (a sales analytics dashboard). Page #f5f0e6, cards #fffdf9 with a 1px #e6decf line, ink #1d1913, one accent orange-red #e4572e, font Inter. Draw one dashboard page in DOM: a 76px top bar with the Sable mark, a breadcrumb, a 300x48px button Updated 9:41 AM with a clock icon and a Share button; the header Quarterly sales review at 80px (weight 700, -0.04em); three KPI cards 576x230px at y 252 with x 72, 672 and 1272, each with a 24px label and an 88px value and a delta line (Q3 net sales $5.43M +20.4%, Orders shipped 479 +12.7%, Average order value $11,336 +6.8%); a bar chart card 1000x504px at (72, 506) with axis $0–$2.5M at 120px per $1M and six 84px bars Apr–Sep (Q2 grey #d3c7b3, Q3 orange) with value labels; a segment list card 752x504px at (1096, 506) with five 20px bars (Industrial manufacturing $1.84M and four more). Build every data value twice, an old and a new layer in the same position (net sales $5.87M +30.2%, 512 +20.5%, $11,465 +8.0%; Q3 bars 1.79, 1.94, 2.14; list values 2.06, 1.38, 1.12, 0.81, 0.50). Add skeleton blocks at the same positions as the data only (values, delta lines, chart bars, list values and bars) in #ebe4d5 with 10–16px radii; labels and titles stay. Keep one position-and-time driven function shimmer(t): a 340px band, linear gradient white 0 to 90% to 0, skewed 24 degrees, sweeping from x -380 to 2300 once every 1.1s from 2.6s to 6.9s; place the band inside every block at its global position (tx = bandX - (blockCentreY - 540) * tan 24deg - blockX - 170), and call it from a linear proxy tween's onUpdate with the timeline time. Put the page in a camera element and animate scale and x/y: 1.0 drifting to 1.03 over 0–0.95s; push to scale 1.4 centred (1240, 386) over 0.95–2.0s (power3.inOut); back to 1.0 over 2.35–3.35s; linear drift to 1.06 centred (960, 530) until 7.6s. Cursor: enters 0.3s, flies to the status button (1560, 44) by 1.15s (expo.out), presses at 1.2s (scale 0.86, release with back.out(2)); a menu 360px wide with three 60px rows at 26px (Refresh now with a refresh icon and ⌘R, Schedule refresh…, Export as PDF) opens 1.28–1.56s; the cursor moves to Refresh now (1480, 112) over 1.65–2.15s, the row highlights at 2.0s, click at 2.2s, menu closes 2.32s. The button swaps to Refreshing… with a rotating icon (1320 degrees over 3.3s, linear) 2.32–2.58s. Cross-fade old data to skeleton 2.45–3.05s: KPI cards at 2.45, 2.52, 2.59s, chart at 2.6s, list at 2.75s, 0.3s each. Return from 5.6s: the button turns to Updated 9:44 AM; KPI new values fade in at 5.6, 5.72, 5.84s (0.45s); chart bars scaleY 0 to 1 from the baseline at 6.15s with 0.09s stagger (0.85s expo.out) and labels fade in 0.55s after each bar starts; list bars scaleX 0 to 1 from the left at 6.6s with 0.1s stagger (0.75s expo.out) and values fade in 0.4s later. At 7.7s fade a #f5f0e6 veil to 1 over 0.45s while the page scales to 0.97, then rise the lockup: a 150px orange mark with three white bars at 7.85s (scale 0.8 to 1, expo.out), Sable at 164px weight 700 at 7.97s, and the tagline Your numbers, always current. at 44px at 8.1s; hold to 10.8s. Finish with static grain at 10% multiply and a vignette. Use one baseline gsap.set per element and .to() tweens with explicit end values, and put opacity 0 for hidden elements in CSS; no CSS animations, no Date, no Math.random.

## Often confused with

- [Wireframe Re-layout](https://motionboard.app/r/wireframe-re-layout.md): Wireframe Re-layout turns content into wireframes and moves the frames into a new layout; here the layout stays fixed, the data becomes grey blocks with a moving light band, and the same page is filled with new numbers.
- [Count Up Animation](https://motionboard.app/r/count-up-animation.md): Count-up Animation rolls numbers up digit by digit on a live dashboard; here the numbers disappear behind a loading state first and return as a fade, and the motion that matters is the shimmer and the staggered refill.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/skeleton-load/hyperframes.json (318 B)
- https://motionboard.app/source/skeleton-load/index.html (25.7 KB)
- https://motionboard.app/source/skeleton-load/package.json (302 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "skeleton-load/hyperframes.json" "https://motionboard.app/source/skeleton-load/hyperframes.json"
curl -fsSL --create-dirs -o "skeleton-load/index.html" "https://motionboard.app/source/skeleton-load/index.html"
curl -fsSL --create-dirs -o "skeleton-load/package.json" "https://motionboard.app/source/skeleton-load/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 {
        --page: #f5f0e6;
        --card: #fffdf9;
        --ink: #1d1913;
        --mute: #6f6556;
        --faint: #8a7f6e;
        --line: #e6decf;
        --accent: #e4572e;
        --tint: #fbe6dc;
        --sk: #ebe4d5;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--page); }
      #root {
        position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--page);
        font-family: "Inter", system-ui, sans-serif; color: var(--ink);
        -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
      }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
      #zoom { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      #cam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
      #page, #skl { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      #page div, #page span, #page b { white-space: nowrap; }

      /* ---------------- top bar ---------------- */
      #bar { position: absolute; left: 0; top: 0; width: 1920px; height: 76px; border-bottom: 1px solid var(--line); }
      #brand { position: absolute; left: 72px; top: 0; height: 76px; display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
      #brand svg { width: 38px; height: 38px; display: block; }
      #crumb { position: absolute; left: 252px; top: 0; height: 76px; display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 500; color: var(--faint); }
      #crumb b { font-weight: 600; color: var(--ink); }
      #crumb i { font-style: normal; color: #c9bfab; }
      #tbr { position: absolute; right: 72px; top: 14px; height: 48px; display: flex; align-items: center; gap: 20px; }
      #upd { position: relative; width: 300px; height: 48px; border-radius: 12px; border: 1px solid #ddd3c0; background: var(--card); font-size: 22px; font-weight: 500; color: var(--ink); }
      #upd span.ab { position: absolute; top: 0; height: 46px; display: flex; align-items: center; }
      #upd svg.ab { position: absolute; top: 12px; }
      #upd .ico { left: 16px; color: var(--mute); }
      #upd .tx { left: 50px; }
      #upd .ch { right: 14px; color: var(--faint); }
      #upd .ico-r { color: var(--accent); }
      #share { height: 48px; padding: 0 22px; border-radius: 12px; background: var(--ink); color: #fffdf9; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

      /* ---------------- header ---------------- */
      #eyebrow { position: absolute; left: 72px; top: 100px; font-size: 24px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
      #eyebrow span { color: var(--faint); font-weight: 600; }
      #title { position: absolute; left: 72px; top: 132px; font-size: 80px; line-height: 92px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
      #chips { position: absolute; right: 72px; top: 150px; display: flex; gap: 14px; }
      .cp { height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid #ddd3c0; background: var(--card); font-size: 22px; font-weight: 500; color: var(--mute); display: flex; align-items: center; gap: 10px; }
      .cp b { font-weight: 600; color: var(--ink); }

      /* ---------------- cards ---------------- */
      .card { position: absolute; background: var(--card); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(90, 60, 20, 0.04), 0 14px 30px -18px rgba(90, 60, 20, 0.18); }
      .card .lab { position: absolute; left: 32px; top: 26px; font-size: 24px; font-weight: 600; color: var(--mute); }
      .card .dots { position: absolute; right: 26px; top: 28px; color: #b9ad97; }
      .card .v { position: absolute; left: 32px; top: 66px; font-size: 88px; line-height: 100px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); }
      .card .d { position: absolute; left: 32px; top: 176px; height: 30px; display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 500; color: var(--faint); }
      .card .d b { font-weight: 700; color: var(--ink); }
      .card .d svg { width: 22px; height: 22px; color: var(--accent); stroke-width: 2.4; }
      .card .ttl { position: absolute; left: 40px; top: 30px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
      #cd .ttl { left: 36px; }
      .lg { position: absolute; right: 40px; top: 36px; display: flex; gap: 22px; font-size: 22px; font-weight: 500; color: var(--mute); }
      .lg span { display: flex; align-items: center; gap: 8px; }
      .lg i { width: 14px; height: 14px; border-radius: 4px; display: block; }
      .gl { position: absolute; left: 128px; width: 832px; height: 1px; background: #eee6d6; }
      .gl.base { background: #d6cbb6; }
      .yl { position: absolute; left: 36px; width: 80px; text-align: right; font-size: 20px; font-weight: 500; color: var(--faint); height: 24px; line-height: 24px; }
      .xl { position: absolute; top: 452px; width: 138px; text-align: center; font-size: 22px; font-weight: 500; color: var(--mute); }
      .bar { position: absolute; width: 84px; border-radius: 10px 10px 3px 3px; }
      .nb { transform-origin: 50% 100%; }
      .vl { position: absolute; width: 144px; text-align: center; font-size: 20px; font-weight: 700; color: var(--ink); }
      .lrow { position: absolute; left: 36px; width: 680px; height: 60px; }
      .lrow .nm { position: absolute; left: 0; top: 0; font-size: 24px; font-weight: 500; color: #3a342a; line-height: 30px; }
      .lrow .vv { position: absolute; right: 0; top: 0; font-size: 24px; font-weight: 700; color: var(--ink); line-height: 30px; text-align: right; }
      .lrow .fb { position: absolute; left: 0; top: 38px; height: 20px; border-radius: 10px; background: var(--accent); }
      .nfb { transform-origin: 0 50%; }

      /* ---------------- menu ---------------- */
      #menu { position: absolute; left: 1392px; top: 72px; width: 360px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid #ddd3c0; box-shadow: 0 24px 50px -12px rgba(60, 40, 15, 0.32), 0 2px 6px rgba(60, 40, 15, 0.08); transform-origin: 100% 0; z-index: 5; }
      .mi { position: relative; height: 60px; border-radius: 10px; display: flex; align-items: center; gap: 14px; padding: 0 14px; font-size: 26px; font-weight: 500; color: var(--ink); }
      .mi .ic { width: 26px; height: 26px; color: var(--mute); }
      .mi kbd { margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 20px; color: var(--faint); }
      .mi .hl { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 10px; background: var(--tint); opacity: 0; }
      .mi > *:not(.hl) { position: relative; }
      .mi > kbd { margin-left: auto; }

      /* ---------------- skeleton ---------------- */
      #skl { pointer-events: none; }
      .sb { position: absolute; background: var(--sk); overflow: hidden; isolation: isolate; opacity: 0; }
      .sb .bn { position: absolute; left: 0; top: -12px; width: 340px; height: calc(100% + 24px); background: linear-gradient(90deg, rgba(255, 253, 248, 0) 0%, rgba(255, 253, 248, 0.9) 50%, rgba(255, 253, 248, 0) 100%); transform: translate3d(-2000px, 0, 0) skewX(-24deg); }

      /* ---------------- cursor ---------------- */
      #cur { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; z-index: 20; }
      #cur svg { position: absolute; left: -7px; top: -4px; width: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(40, 25, 10, 0.35)); }

      #zoom, #menu, .nv, .nd, .nvl, .nlv, .ico-r, .t2, .t3, #lmk, #lwm, #ltg { opacity: 0; }

      /* ---------------- ending ---------------- */
      #veil { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: var(--page); opacity: 0; }
      #lock { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
      #lrow { display: flex; align-items: center; gap: 36px; }
      #lmk { width: 150px; height: 150px; display: block; }
      #lwm { font-size: 164px; line-height: 172px; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); }
      #ltg { margin-top: 30px; font-size: 44px; line-height: 56px; font-weight: 500; letter-spacing: -0.015em; color: var(--mute); }
      #ltg b { font-weight: 700; color: var(--accent); }
      #grain { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0.1; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0 0.12  0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
      #vig { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; background: radial-gradient(ellipse 1300px 820px at 50% 46%, rgba(80, 55, 25, 0) 55%, rgba(80, 55, 25, 0.11) 100%); }
    </style>
  </head>
  <body>
    <svg width="0" height="0" style="position: absolute" aria-hidden="true">
      <defs>
        <symbol id="i-refresh" viewBox="0 0 24 24"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8M21 3v5h-5M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16M8 16H3v5" /></symbol>
        <symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9.5" /><path d="M12 6v6l4 2" /></symbol>
        <symbol id="i-cal" viewBox="0 0 24 24"><rect x="3" y="4.5" width="18" height="16" rx="2.5" /><path d="M3 10h18M8 2.5v4M16 2.5v4" /></symbol>
        <symbol id="i-file" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M12 12v6M9 15l3 3 3-3" /></symbol>
        <symbol id="i-cd" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6" /></symbol>
        <symbol id="i-share" viewBox="0 0 24 24"><path d="M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7M16 6l-4-4-4 4M12 2v14" /></symbol>
        <symbol id="i-up" viewBox="0 0 24 24"><path d="M7 17 17 7M8 7h9v9" /></symbol>
        <symbol id="i-more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.4" /><circle cx="12" cy="12" r="1.4" /><circle cx="19" cy="12" r="1.4" /></symbol>
        <symbol id="i-mark" viewBox="0 0 64 64">
          <rect width="64" height="64" rx="17" fill="#e4572e" />
          <rect x="13" y="34" width="10" height="16" rx="3" fill="#fffdf9" />
          <rect x="27" y="24" width="10" height="26" rx="3" fill="#fffdf9" />
          <rect x="41" y="13" width="10" height="37" rx="3" fill="#fffdf9" />
        </symbol>
      </defs>
    </svg>

    <div id="root" data-composition-id="main" data-start="0" data-duration="10.8" data-width="1920" data-height="1080">
      <div id="stage" class="clip full" data-start="0" data-duration="10.8" data-track-index="0" data-layout-allow-overlap>
        <div id="zoom" data-layout-allow-overlap data-layout-ignore>
          <div id="cam" data-layout-allow-overlap data-layout-ignore>
            <div id="page" data-layout-allow-overlap data-layout-ignore>
              <div id="bar">
                <div id="brand"><svg viewBox="0 0 64 64"><use href="#i-mark" /></svg>Sable</div>
                <div id="crumb"><i>/</i>Reports<i>/</i>Sales<i>/</i><b>Quarterly review</b></div>
                <div id="tbr">
                  <div id="upd">
                    <svg class="ic ab ico ico-c" ><use href="#i-clock" /></svg>
                    <svg class="ic ab ico ico-r" ><use href="#i-refresh" /></svg>
                    <span class="ab tx t1">Updated 9:41 AM</span>
                    <span class="ab tx t2">Refreshing&hellip;</span>
                    <span class="ab tx t3">Updated 9:44 AM</span>
                    <svg class="ic ab ch" ><use href="#i-cd" /></svg>
                  </div>
                  <div id="share"><svg class="ic"><use href="#i-share" /></svg>Share</div>
                </div>
              </div>

              <div id="eyebrow">Q3 2026 <span>&middot; All regions</span></div>
              <div id="title">Quarterly sales review</div>
              <div id="chips">
                <div class="cp">Market segment <b>All</b><svg class="ic" style="width: 20px; height: 20px"><use href="#i-cd" /></svg></div>
                <div class="cp"><svg class="ic" style="width: 20px; height: 20px"><use href="#i-cal" /></svg><b>Jul 1 &ndash; Sep 30, 2026</b></div>
              </div>

              <div id="kpis"></div>
              <div id="cd" class="card" style="left: 72px; top: 506px; width: 1000px; height: 504px"></div>
              <div id="ld" class="card" style="left: 1096px; top: 506px; width: 752px; height: 504px"></div>

              <div id="menu">
                <div class="mi" id="mi1"><div class="hl"></div><svg class="ic"><use href="#i-refresh" /></svg><span>Refresh now</span><kbd>&#8984;R</kbd></div>
                <div class="mi"><svg class="ic"><use href="#i-clock" /></svg>Schedule refresh&hellip;</div>
                <div class="mi"><svg class="ic"><use href="#i-file" /></svg>Export as PDF</div>
              </div>
            </div>

            <div id="skl" data-layout-allow-overlap data-layout-ignore></div>

            <div id="cur">
              <svg viewBox="0 0 24 24"><path d="M5 3l14 7.5-6.2 1.8L10 19z" fill="#1d1913" stroke="#ffffff" stroke-width="1.6" stroke-linejoin="round" /></svg>
            </div>
          </div>
        </div>

        <div id="veil"></div>
        <div id="lock" data-layout-allow-overlap data-layout-ignore>
          <div id="lrow"><svg id="lmk" viewBox="0 0 64 64"><use href="#i-mark" /></svg><div id="lwm">Sable</div></div>
          <div id="ltg">Your numbers, <b>always current.</b></div>
        </div>
        <div id="grain"></div>
        <div id="vig"></div>
      </div>
    </div>

    <script>
      const EIO = "power3.inOut";
      const EXPO = "expo.out";
      const $ = (s) => document.querySelector(s);
      const $$ = (s) => Array.from(document.querySelectorAll(s));

      /* ---------------- data ---------------- */
      const KPI = [
        { lab: "Q3 net sales", ov: "$5.43M", od: "20.4%", nv: "$5.87M", nd: "30.2%", sw: 290 },
        { lab: "Orders shipped", ov: "479", od: "12.7%", nv: "512", nd: "20.5%", sw: 190 },
        { lab: "Average order value", ov: "$11,336", od: "6.8%", nv: "$11,465", nd: "8.0%", sw: 330 },
      ];
      const MON = ["Apr", "May", "Jun", "Jul", "Aug", "Sep"];
      const OLD = [1.38, 1.5, 1.63, 1.68, 1.79, 1.96];
      const NEW = [1.38, 1.5, 1.63, 1.79, 1.94, 2.14];
      const SEG = ["Industrial manufacturing", "Construction", "Food & beverage", "Logistics", "Healthcare"];
      const SOLD = [1.84, 1.21, 0.96, 0.88, 0.54];
      const SNEW = [2.06, 1.38, 1.12, 0.81, 0.5];
      const Q2C = "#d3c7b3";
      const Q3C = "#e4572e";
      const PH = 120; // px per $1M in the chart
      const BASE = 440; // baseline y inside the chart card
      const X0 = 128, SLOT = 832 / 6;
      const SCALE = 680 / 2.4; // px per $1M in the bar list
      const dlt = (v) => '<svg class="ic"><use href="#i-up" /></svg><b>' + v + '</b><span>vs Q2</span>';

      /* ---------------- build: KPI cards ---------------- */
      let h = "";
      KPI.forEach((k, i) => {
        h += '<div class="card" style="left:' + (72 + i * 600) + 'px;top:252px;width:576px;height:230px">' +
          '<div class="lab">' + k.lab + '</div><svg class="ic dots"><use href="#i-more" /></svg>' +
          '<div class="v ov k' + i + '">' + k.ov + '</div><div class="v nv k' + i + '">' + k.nv + '</div>' +
          '<div class="d od k' + i + '">' + dlt(k.od) + '</div><div class="d nd k' + i + '">' + dlt(k.nd) + '</div></div>';
      });
      $("#kpis").innerHTML = h;

      /* ---------------- build: bar chart ---------------- */
      h = '<div class="ttl">Monthly net sales</div>' +
        '<div class="lg"><span><i style="background:' + Q2C + '"></i>Q2</span><span><i style="background:' + Q3C + '"></i>Q3</span></div>';
      for (let g = 0; g <= 5; g++) {
        const y = BASE - g * 0.5 * PH;
        h += '<div class="gl' + (g === 0 ? " base" : "") + '" style="top:' + y + 'px"></div>';
        h += '<div class="yl" style="top:' + (y - 12) + 'px">' + (g === 0 ? "$0" : "$" + (g * 0.5).toFixed(1) + "M") + "</div>";
      }
      MON.forEach((m, i) => {
        const cx = X0 + SLOT * i + SLOT / 2;
        const col = i < 3 ? Q2C : Q3C;
        const ho = Math.round(OLD[i] * PH), hn = Math.round(NEW[i] * PH);
        h += '<div class="xl" style="left:' + (cx - 69) + 'px">' + m + "</div>";
        h += '<div class="bar ob" style="left:' + (cx - 42) + "px;top:" + (BASE - ho) + "px;height:" + ho + "px;background:" + col + '"></div>';
        h += '<div class="bar nb" style="left:' + (cx - 42) + "px;top:" + (BASE - hn) + "px;height:" + hn + "px;background:" + col + '"></div>';
        h += '<div class="vl ovl" style="left:' + (cx - 72) + "px;top:" + (BASE - ho - 32) + 'px">$' + OLD[i].toFixed(2) + "M</div>";
        h += '<div class="vl nvl" style="left:' + (cx - 72) + "px;top:" + (BASE - hn - 32) + 'px">$' + NEW[i].toFixed(2) + "M</div>";
      });
      $("#cd").innerHTML = h;

      /* ---------------- build: segment list ---------------- */
      h = '<div class="ttl">Sales by market segment</div>';
      SEG.forEach((s, r) => {
        const y = 104 + r * 76;
        h += '<div class="lrow" style="top:' + y + 'px"><div class="nm">' + s + "</div>" +
          '<div class="vv olv">$' + SOLD[r].toFixed(2) + 'M</div><div class="vv nlv">$' + SNEW[r].toFixed(2) + "M</div>" +
          '<div class="fb olb" style="width:' + Math.round(SOLD[r] * SCALE) + 'px"></div>' +
          '<div class="fb nfb nlb" style="width:' + Math.round(SNEW[r] * SCALE) + 'px"></div></div>';
      });
      $("#ld").innerHTML = h;

      /* ---------------- build: skeleton blocks (page coordinates) ---------------- */
      const SK = []; // {el, x, y, w, h}
      function sb(g, x, y, w, hh, r) {
        const e = document.createElement("div");
        e.className = "sb sk-" + g;
        e.style.cssText = "left:" + x + "px;top:" + y + "px;width:" + w + "px;height:" + hh + "px;border-radius:" + r + "px";
        const b = document.createElement("div");
        b.className = "bn";
        e.appendChild(b);
        $("#skl").appendChild(e);
        SK.push({ el: e, bn: b, x: x, y: y, w: w, h: hh });
      }
      KPI.forEach((k, i) => {
        sb("k" + i, 72 + i * 600 + 32, 252 + 90, k.sw, 62, 16);
        sb("k" + i, 72 + i * 600 + 32, 252 + 178, 190, 26, 13);
      });
      const CPH = [150, 188, 168, 232, 214, 262];
      MON.forEach((m, i) => {
        const cx = 72 + X0 + SLOT * i + SLOT / 2;
        sb("ch", Math.round(cx - 42), 506 + BASE - CPH[i], 84, CPH[i], 12);
      });
      const LPW = [600, 500, 430, 370, 290];
      SEG.forEach((s, r) => {
        const y = 506 + 104 + r * 76;
        sb("ls", 1096 + 36 + 680 - 104, y + 2, 104, 26, 13);
        sb("ls", 1096 + 36, y + 38, LPW[r], 20, 10);
      });

      /* ---------------- baselines ---------------- */
      const cam = (s, cx, cy) => ({ scale: s, x: 960 - s * cx, y: 540 - s * cy });
      const W0 = cam(1.0, 960, 540);
      const D0 = cam(1.03, 960, 540);
      const MENU = cam(1.4, 1240, 386);
      const W1 = cam(1.0, 960, 540);
      const D1 = cam(1.06, 960, 530);

      const tl = gsap.timeline({ paused: true });
      tl.set("#cam", W0, 0);
      tl.set("#zoom", { opacity: 0 }, 0);
      tl.set("#cur", { x: 1100, y: 800, opacity: 0, scale: 1 }, 0);
      tl.set("#menu", { opacity: 0, y: -10, scaleY: 0.96 }, 0);
      tl.set(".sb", { opacity: 0 }, 0);
      tl.set(".nv, .nd, .nvl", { opacity: 0 }, 0);
      tl.set(".nb", { scaleY: 0 }, 0);
      tl.set(".nfb", { scaleX: 0 }, 0);
      tl.set(".nlv", { opacity: 0 }, 0);
      tl.set(".ico-r, .t2, .t3", { opacity: 0, rotation: 0 }, 0);
      tl.set("#veil", { opacity: 0 }, 0);
      tl.set("#lmk", { opacity: 0, scale: 0.8, transformOrigin: "50% 50%" }, 0);
      tl.set("#lwm", { opacity: 0, y: 26 }, 0);
      tl.set("#ltg", { opacity: 0, y: 18 }, 0);

      /* ---------- camera ---------- */
      tl.to("#zoom", { opacity: 1, duration: 0.45, ease: "power2.out" }, 0);
      tl.to("#cam", Object.assign({ duration: 0.95, ease: "none" }, D0), 0);
      tl.to("#cam", Object.assign({ duration: 1.05, ease: EIO }, MENU), 0.95);
      tl.to("#cam", Object.assign({ duration: 1.0, ease: EIO }, W1), 2.35);
      tl.to("#cam", Object.assign({ duration: 4.25, ease: "none" }, D1), 3.35);

      /* ---------- cursor: to the status button, open the menu ---------- */
      tl.to("#cur", { opacity: 1, duration: 0.15, ease: "power2.out" }, 0.3);
      tl.to("#cur", { x: 1560, duration: 0.85, ease: EXPO }, 0.3);
      tl.to("#cur", { y: 44, duration: 0.95, ease: "power2.out" }, 0.3);
      tl.to("#cur", { scale: 0.86, duration: 0.06, ease: "power2.out" }, 1.2);
      tl.to("#cur", { scale: 1, duration: 0.18, ease: "back.out(2)" }, 1.27);
      tl.to("#upd", { backgroundColor: "#ece4d3", duration: 0.08, ease: "power2.out" }, 1.2);
      tl.to("#menu", { opacity: 1, y: 0, scaleY: 1, duration: 0.28, ease: EXPO }, 1.28);

      /* ---------- cursor: to Refresh now, click ---------- */
      tl.to("#cur", { x: 1480, duration: 0.5, ease: EIO }, 1.65);
      tl.to("#cur", { y: 112, duration: 0.5, ease: EIO }, 1.65);
      tl.to("#mi1 .hl", { opacity: 0.55, duration: 0.12, ease: "power2.out" }, 2.0);
      tl.to("#cur", { scale: 0.86, duration: 0.06, ease: "power2.out" }, 2.2);
      tl.to("#mi1 .hl", { opacity: 1, duration: 0.06, ease: "power2.out" }, 2.2);
      tl.to("#cur", { scale: 1, duration: 0.18, ease: "back.out(2)" }, 2.27);
      tl.to("#menu", { opacity: 0, y: -6, duration: 0.18, ease: "power2.out" }, 2.32);
      tl.to("#upd", { backgroundColor: "#fffdf9", duration: 0.2, ease: "power2.out" }, 2.32);
      tl.to("#cur", { opacity: 0, duration: 0.2, ease: "power2.out" }, 2.45);

      /* ---------- refresh: status button ---------- */
      tl.to(".t1, .ico-c", { opacity: 0, duration: 0.18, ease: "power2.out" }, 2.32);
      tl.to(".t2, .ico-r", { opacity: 1, duration: 0.18, ease: "power2.out" }, 2.4);
      tl.to(".ico-r", { rotation: 1320, duration: 3.3, ease: "none" }, 2.4);

      /* ---------- data cross-fades to skeletons ---------- */
      for (let i = 0; i < 3; i++) {
        const t = 2.45 + i * 0.07;
        tl.to(".ov.k" + i + ", .od.k" + i, { opacity: 0, duration: 0.3, ease: "power2.out" }, t);
        tl.to(".sk-k" + i, { opacity: 1, duration: 0.3, ease: "power2.out" }, t);
      }
      tl.to(".ob, .ovl", { opacity: 0, duration: 0.3, ease: "power2.out" }, 2.6);
      tl.to(".sk-ch", { opacity: 1, duration: 0.3, ease: "power2.out" }, 2.6);
      tl.to(".olb, .olv", { opacity: 0, duration: 0.3, ease: "power2.out" }, 2.75);
      tl.to(".sk-ls", { opacity: 1, duration: 0.3, ease: "power2.out" }, 2.75);

      /* ---------- content returns: KPI numbers, then chart bars, then the list ---------- */
      tl.to(".t2, .ico-r", { opacity: 0, duration: 0.2, ease: "power2.out" }, 5.6);
      tl.to(".t3, .ico-c", { opacity: 1, duration: 0.2, ease: "power2.out" }, 5.7);
      for (let i = 0; i < 3; i++) {
        const t = 5.6 + i * 0.12;
        tl.to(".sk-k" + i, { opacity: 0, duration: 0.4, ease: "power2.out" }, t);
        tl.to(".nv.k" + i + ", .nd.k" + i, { opacity: 1, duration: 0.45, ease: "power2.out" }, t + 0.04);
      }
      const bars = $$(".nb");
      const nvls = $$(".nvl");
      tl.to(".sk-ch", { opacity: 0, duration: 0.5, ease: "power2.out" }, 6.2);
      bars.forEach((b, i) => {
        tl.to(b, { scaleY: 1, duration: 0.85, ease: EXPO }, 6.15 + i * 0.09);
        tl.to(nvls[i], { opacity: 1, duration: 0.3, ease: "power2.out" }, 6.15 + i * 0.09 + 0.55);
      });
      const nlbs = $$(".nlb");
      const nlvs = $$(".nlv");
      tl.to(".sk-ls", { opacity: 0, duration: 0.45, ease: "power2.out" }, 6.6);
      nlbs.forEach((b, r) => {
        tl.to(b, { scaleX: 1, duration: 0.75, ease: EXPO }, 6.6 + r * 0.1);
        tl.to(nlvs[r], { opacity: 1, duration: 0.3, ease: "power2.out" }, 6.6 + r * 0.1 + 0.4);
      });

      /* ---------- shimmer: one diagonal band across all blocks, a sweep every 1.1 s ---------- */
      const SH0 = 2.6, SH1 = 6.9, PERIOD = 1.1, BW = 340, SKEW = Math.tan((24 * Math.PI) / 180);
      function shimmer(t) {
        let bx = -3000;
        if (t >= SH0 && t <= SH1) {
          const p = (((t - SH0) / PERIOD) % 1 + 1) % 1;
          bx = -380 + p * (1920 + 760);
        }
        for (let i = 0; i < SK.length; i++) {
          const b = SK[i];
          const yc = b.y + b.h / 2;
          const tx = bx - (yc - 540) * SKEW - b.x - BW / 2;
          b.bn.style.transform = "translate3d(" + tx.toFixed(1) + "px,0,0) skewX(-24deg)";
        }
      }
      shimmer(0);
      tl.to({ v: 0 }, { v: 1, duration: 10.8, ease: "none", onUpdate: () => shimmer(tl.time()) }, 0);

      /* ---------- lockup ---------- */
      tl.to("#veil", { opacity: 1, duration: 0.45, ease: EIO }, 7.7);
      tl.to("#zoom", { scale: 0.97, transformOrigin: "960px 540px", duration: 0.5, ease: EIO }, 7.7);
      tl.to("#lmk", { opacity: 1, scale: 1, duration: 0.55, ease: EXPO }, 7.85);
      tl.to("#lwm", { opacity: 1, y: 0, duration: 0.55, ease: EXPO }, 7.97);
      tl.to("#ltg", { opacity: 1, y: 0, duration: 0.5, ease: EXPO }, 8.1);

      tl.set({}, {}, 10.8);

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