Skip to content
animorio
IT
Back to the library

Springy dashboard loader

Transitions, SVGGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The start-up loading screen of an invented analytics app, dark and premium like a Dribbble shot: the glass window lands on a spring, its cards land after it as grey placeholders (a skeleton) crossed by one single light, and card by card they turn into the real data, with figures rolling like an odometer, the chart drawing itself and the channel bars growing. At 100% the status line says Up to date, a light runs round the edge and a sheen crosses the glass; then it starts over.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Springy dashboard loader" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Kestrel is loading your workspace</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the loading screen of an analytics app. The window lands, its cards land after it on springs as grey
         placeholders with one light crossing them all, then each card turns into its data: the figures roll like an
         odometer, the chart draws itself, the channel bars grow. At 100% the status says Up to date, a light runs
         once round the window's edge and a sheen crosses the glass. Then the cursor reads the chart and it starts over -->
    <div class="glow" aria-hidden="true"><span class="glow__a"></span><span class="glow__b"></span></div>

    <div class="wrap" data-wrap>
      <section class="win" data-win aria-label="Kestrel analytics, overview">
        <span class="win__spot" data-spot aria-hidden="true"></span>
        <span class="win__beam" data-beam aria-hidden="true"></span>
        <span class="win__sheen" aria-hidden="true"><span class="win__sheen-band" data-sheen></span></span>

        <header class="bar">
          <span class="brand">
            <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
              <path d="M3 13.2L10 3.4l7 9.8-7-2.6z"/>
              <path class="brand__mark-lo" d="M3 13.2l7-2.6 7 2.6-7 3.4z"/>
            </svg>
            <span class="brand__name" data-brand>Kestrel</span>
            <span class="bar__crumb">Overview</span>
          </span>
          <span class="bar__right">
            <button class="bar__btn" type="button" data-refresh aria-label="Reload the workspace">
              <svg viewBox="0 0 16 16" aria-hidden="true" data-refresh-icon>
                <path d="M13 8a5 5 0 1 1-1.6-3.7"/>
                <path d="M11.8 1.9v2.8H9"/>
              </svg>
            </button>
            <span class="bar__avatar" aria-hidden="true">MR</span>
          </span>
        </header>

        <div class="status" data-status>
          <span class="status__line">
            <span class="status__words status__words--busy" data-busy>Syncing workspace</span>
            <span class="status__words status__words--done" data-done>
              <svg class="status__check" viewBox="0 0 12 12" aria-hidden="true"><path data-check pathLength="1" d="M2.4 6.3l2.4 2.4 4.8-5.2"/></svg>
              Up to date
            </span>
            <span class="status__pct" data-pct>0%</span>
            <span class="status__when" data-when>Just now</span>
          </span>
          <span class="status__track" aria-hidden="true"><span class="status__fill" data-fill></span></span>
        </div>

        <div class="kpis">
          <article class="card kpi" data-card>
            <span class="card__edge" aria-hidden="true"></span>
            <div class="sk" aria-hidden="true" data-sk><i data-bone style="width:58%"></i><i data-bone class="sk__big" style="width:78%"></i><i data-bone style="width:40%"></i></div>
            <div class="ct" data-ct>
              <span class="kpi__label" data-in>Revenue</span>
              <span class="kpi__value" data-in data-odo="revenue"></span>
              <span class="chip" data-chip><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 6.6l3-3 3 3"/></svg>12.4%</span>
            </div>
          </article>
          <article class="card kpi" data-card>
            <span class="card__edge" aria-hidden="true"></span>
            <div class="sk" aria-hidden="true" data-sk><i data-bone style="width:70%"></i><i data-bone class="sk__big" style="width:72%"></i><i data-bone style="width:36%"></i></div>
            <div class="ct" data-ct>
              <span class="kpi__label" data-in>Active users</span>
              <span class="kpi__value" data-in data-odo="users"></span>
              <span class="chip" data-chip><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 6.6l3-3 3 3"/></svg>8.1%</span>
            </div>
          </article>
          <article class="card kpi" data-card>
            <span class="card__edge" aria-hidden="true"></span>
            <div class="sk" aria-hidden="true" data-sk><i data-bone style="width:62%"></i><i data-bone class="sk__big" style="width:66%"></i><i data-bone style="width:42%"></i></div>
            <div class="ct" data-ct>
              <span class="kpi__label" data-in>Conversion</span>
              <span class="kpi__value" data-in data-odo="conv"></span>
              <span class="chip chip--down" data-chip><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 3.4l3 3 3-3"/></svg>0.3%</span>
            </div>
          </article>
        </div>

        <div class="row">
          <article class="card chart" data-card>
            <span class="card__edge" aria-hidden="true"></span>
            <div class="sk sk--chart" aria-hidden="true" data-sk><i data-bone style="width:38%"></i><i data-bone class="sk__area"></i></div>
            <div class="ct" data-ct>
              <header class="chart__head" data-in>
                <span class="chart__title">Revenue</span>
                <span class="chart__range">Last 30 days</span>
              </header>
              <div class="chart__plot" data-plot>
                <svg class="chart__svg" viewBox="0 0 300 100" preserveAspectRatio="none" aria-hidden="true">
                  <defs>
                    <linearGradient id="kArea" x1="0" y1="0" x2="0" y2="1">
                      <stop offset="0" stop-color="var(--accent)" stop-opacity="0.34"/>
                      <stop offset="1" stop-color="var(--accent)" stop-opacity="0"/>
                    </linearGradient>
                    <clipPath id="kClip"><rect data-clip x="0" y="-10" width="0" height="120"/></clipPath>
                  </defs>
                  <path class="chart__grid" d="M0 25H300M0 50H300M0 75H300"/>
                  <path class="chart__area" data-area clip-path="url(#kClip)" fill="url(#kArea)"/>
                  <path class="chart__line" data-line clip-path="url(#kClip)"/>
                </svg>
                <span class="chart__cur" data-cur aria-hidden="true"></span>
                <span class="chart__mk" data-mk aria-hidden="true"></span>
                <span class="chart__tip" data-tip aria-hidden="true"><span class="chart__tip-in"><b data-tip-v>$0</b><span data-tip-d>Nov 1</span></span></span>
              </div>
            </div>
          </article>
          <article class="card list" data-card>
            <span class="card__edge" aria-hidden="true"></span>
            <div class="sk" aria-hidden="true" data-sk><i data-bone style="width:56%"></i><i data-bone style="width:90%"></i><i data-bone style="width:74%"></i><i data-bone style="width:82%"></i><i data-bone style="width:64%"></i></div>
            <div class="ct" data-ct>
              <span class="list__title" data-in>Top channels</span>
              <ul class="list__rows" data-rows></ul>
            </div>
          </article>
        </div>
      </section>
    </div>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

36 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Springy dashboard loader” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black page, with a violet and a mint glow behind and a very fine grain, the glass window of Kestrel, an invented analytics app, lands on a spring: at the top the logo, ‘Overview’, the reload button and the avatar; below them the ‘Syncing workspace’ line with the percentage and a thin bar. The cards land after the window, one after the other, from a little lower and a little smaller, and settle a pixel past the mark: they are still grey placeholders, and one single light crosses them all at the same height, as if it ran across the whole window. The bar fills the way real ones do: fast, then slower near 70, then a rush to the end. Meanwhile, card by card, the placeholders melt into the data: the labels rise, the figures of Revenue, Active users and Conversion roll like an odometer and stop with a small bounce, the chips with the changes pop out, the card's edge lights up for an instant. The revenue line of the last 30 days draws itself with the violet area under it, then the cursor, the point and the tooltip with the value and the day appear; on the right the channel bars grow on springs and their percentages roll. At 100% ‘Syncing workspace’ makes way for ‘Up to date’ with a checkmark that draws itself, the bar fades, a violet and white light runs once round the edge, a sheen crosses the glass and the window breathes by half a point. Then the dashboard lives a little: the cursor reads the chart back and forth and the tooltip changes, a new user comes in and the last figure rolls. Finally the window leaves and loads again. With the pointer a soft light follows it inside the glass; the reload button spins and starts the loading again at once, and so does a tap on the finished window.

How it works

Two layers per card

Each card has its skeleton (absolute grey bars shaped like the content) and its real content on top. The change is a fade of the skeleton while the content's rows rise by 7 px on a spring, 60 ms apart, and the card makes a small scale snap.

One light for every placeholder

Every bar has a 150 px gradient positioned with calc(var(--sx) - var(--ox)): --sx is the light's position over the window, moved by GSAP, and --ox the bar's distance from the left edge, measured with a ResizeObserver. So the light crosses every card at the same place.

The odometer

Each digit is a column of twenty figures (0-9 twice) in a 1.12 em window faded at the top and bottom. GSAP takes the column to yPercent -(10 + digit) times 5 with a barely-there elastic: it turns a whole lap and stops a pixel past. The digits on the left start a little earlier.

The chart that draws itself

The line and the area are a Catmull-Rom spline turned into Bézier curves in a 300 by 100 box without fixed proportions (vector-effect: non-scaling-stroke keeps the stroke). A widening clipPath reveals both together; the same spline computed in JavaScript puts the cursor and the tooltip exactly on the curve.

The final touch

A 1 px edge made with a conic-gradient and a mask (content-box exclude) goes round once by animating the --a variable; a diagonal sheen crosses the glass with xPercent and the window goes to 1.006 and back on a spring. Every lap is a new timeline, so it always starts clean.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsKestrelThe app's name in the bar.
LOAD_TIMEscript.js2.6How many seconds from the placeholders to all the data.
SPRINGscript.js1How springy the cards and the figures are: 0.4 calm, 2 very bouncy.
STAGGERscript.js0.16The least seconds between one card and the next.
SHIMMERscript.js1How bright the light crossing the placeholders is.
BEAMscript.js1How strong the light running round the edge at the end is.
HOLDscript.js3.4How many seconds the finished dashboard stays before loading again.
LOOPscript.jstrueLoads again and again.

Try them in the Playground

When to use it

As the start-up screen of a dashboard, an analytics app, a back office or a SaaS service that has to load the user's data: instead of a spinner, the shape of the page arrives at once and fills up, so the wait feels shorter.

On phones

The same animation with adapted sizes: the window is as wide as the box, type and gaps follow its width, the chart is also sized on the height and below 500 px the channels card leaves the whole row to the chart. A tap on the button reloads.

With reduced motion

Nothing travels or bounces: the window fades in with still placeholders, the data is already in place and fades in over them, then the status line changes to Up to date.

Pitfalls

  • With preserveAspectRatio none the line got distorted and a pathLength dash stopped working with vector-effect: the line is revealed by the same clipPath as the area, not by a dash.
  • Repeating the timeline with repeat left half-states between laps (the sets at time zero and the tos restarting from where they were): every lap builds a new timeline.
  • The tooltip above the point, when the curve is high, landed on the card's title: under 38% of the height it moves below the point.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.

Testing

Tested on 2 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations