
Skeleton Loading Animation
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.
Motionboard shot: Skeleton Refresh
Seen in real launch films
How to make a Skeleton Loading Animation with Claude Code or Codex
Copy the recipe above and paste it into Claude Code or Codex. The agent installs the skill and builds the shot.
npx skills add krisyangdev/motionboardHow it's built
Keep the layout and replace only the data. Build every number, delta chip, chart bar and list bar twice in the same position, an old layer and a new layer, and draw grey blocks (#ebe4d5, radius 10–16px) over the data positions only, so labels and titles stay on screen. Start with the cause: a cursor clicks the Updated 9:41 AM button at 1.2s, opens a 360px menu with 26px rows and clicks Refresh now at 2.2s; the button turns to Refreshing… with a spinner at 2.32s. Cross-fade the data to blocks over 0.3s each from 2.45s, KPI cards at 2.45, 2.52 and 2.59s, the chart at 2.6s and the list at 2.75s.
Draw the shimmer from the timeline time. One band 340px wide, skewed 24°, white at 90% in the centre, sweeps from x −380 to 2300 once every 1.1s between 2.6s and 6.9s. Put a copy inside every block and offset it by the block position so the angle and speed are shared across the page. Push the camera in to scale 1.4 on the menu over 0.95–2.0s, pull back to 1.0 over 2.35–3.35s and drift to 1.06 until 7.6s.
Bring the content back in order: KPI values fade in 0.45s at 5.6, 5.72 and 5.84s with new numbers ($5.43M to $5.87M), chart bars grow from the baseline over 0.85s with expo.out from 6.15s, 0.09s apart, then list bars grow from the left over 0.75s from 6.6s, 0.1s apart. Press the copy button to send this recipe to Claude Code or Codex, or install the skill once with npx skills add krisyangdev/motionboard. The agent builds the dashboard and the shimmer function. Fade a #f5f0e6 veil in at 7.7s and start the lockup at 7.85s with the orange mark, the word Sable and the tagline Your numbers, always current. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.
Full recipe
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.
Spec
- 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#fffdf9with a 1px#e6decfline, 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
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.
People describe it as
- A dashboard goes grey with a shimmer after you click Refresh, then fills back in with new numbers
- The page turns into placeholder blocks in the same layout while the data loads
- The KPIs come back first, then the chart bars grow up from the baseline, then the list
Often confused with
- Wireframe Re-layoutWireframe 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 AnimationCount-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.
FAQ
What is a skeleton loading animation?
A skeleton screen shows grey blocks in the shape of the content while data loads, so the page keeps its layout and the viewer sees where each value will appear. A light band sweeping across the blocks, called a shimmer, tells the viewer that loading is in progress.
How do you make the shimmer look like one surface?
Use one band for the whole page and compute each block's offset from its position: translate by the band x minus the block x, and shift by the block's vertical distance times tan 24° so the angle is shared. Sweep once every 1.1s at constant speed, and draw it from the timeline time in an onUpdate callback so every render gives the same frame.
Is it free to use?
Yes. Motionboard is free and MIT licensed, so you can use and modify the recipes and the films they produce in personal and commercial projects. The licence asks only that copies of the recipe files keep the copyright notice.








