Skip to content
animorio
IT
Back to the library

Dashboard assembly

ScrollGSAP, CSS onlyMediumCompressed weight: Demo 8.0 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The product section of an analytics app for online shops, in the clean style of product interfaces: an empty window stays put in the middle and, as you scroll, the dashboard assembles inside it one piece at a time, each from its own side, on a short spring, with its shadow settling and a sweep of light as it lands. Beside it, three short lines say what is arriving; at the end a pointer opens an order.

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>
<!--
  "Dashboard assembly" 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>Ledgerline</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>
  <!-- the product section of a made-up analytics tool for online shops, Ledgerline. The stage sticks while you scroll:
       an empty app window waits in the middle, and the dashboard assembles inside it piece by piece, each from its own
       side: the sidebar, the header, four numbers that count up, a chart that draws itself and the orders table, row
       by row. Three short lines at the side say what is arriving. At the end a pointer opens an order. -->
  <main>
    <section class="corsa" data-corsa>
      <div class="palco" data-palco>
        <div class="frasi" data-frasi>
          <p class="frasi__nota">Ledgerline for shops</p>
          <div class="frasi__pila">
            <p class="frase" data-frase>Scroll to build your dashboard.</p>
            <p class="frase" data-frase>Your store, laid out the way you work.</p>
            <p class="frase" data-frase>Numbers that keep up with every sale.</p>
            <p class="frase" data-frase>Every order, one calm table.</p>
          </div>
        </div>

        <div class="spazio" data-spazio>
        <div class="cornice" data-cornice>
          <div class="finestra" data-finestra>
            <div class="finestra__barra">
              <span class="finestra__indirizzo">app.ledgerline.example</span>
            </div>
            <div class="finestra__corpo">
              <aside class="lato pezzo" data-pezzo="lato">
                <div class="lato__marchio">
                  <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 15V5h3v7h7v3z"/></svg>
                  <span>Ledgerline</span>
                </div>
                <nav class="lato__voci">
                  <a class="voce voce--attiva"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 10.5 10 4l7 6.5M5.5 9v7h9V9"/></svg>Overview</a>
                  <a class="voce"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 6h12l-1.2 8.5H5.2zM7.5 6a2.5 2.5 0 0 1 5 0"/></svg>Orders</a>
                  <a class="voce"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 4h5v5H4zM11 4h5v5h-5zM4 11h5v5H4zM11 11h5v5h-5z"/></svg>Products</a>
                  <a class="voce"><svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="7" r="3"/><path d="M4 16c1-3 3.5-4.5 6-4.5s5 1.5 6 4.5"/></svg>Customers</a>
                  <a class="voce"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 16V9M10 16V4M16 16v-5"/></svg>Reports</a>
                </nav>
                <div class="lato__piano">
                  <p>Growth plan</p>
                  <div class="lato__barra"><i></i></div>
                  <p class="tenue">8,420 of 10,000 orders</p>
                </div>
              </aside>

              <div class="principale">
                <header class="testata pezzo" data-pezzo="testata">
                  <div>
                    <p class="tenue piccolo">Monday, Oct 26</p>
                    <h3>Overview</h3>
                  </div>
                  <div class="testata__destra">
                    <span class="cerca"><svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="9" cy="9" r="5"/><path d="m13 13 3.5 3.5"/></svg>Search orders</span>
                    <span class="persona">MO</span>
                  </div>
                </header>

                <div class="numeri">
                  <article class="numero pezzo" data-pezzo="numero">
                    <p class="tenue piccolo">Revenue</p>
                    <p class="numero__cifra" data-conta="48210" data-prefisso="$">$0</p>
                    <p class="numero__var su">+12.4%</p>
                  </article>
                  <article class="numero pezzo" data-pezzo="numero">
                    <p class="tenue piccolo">Orders</p>
                    <p class="numero__cifra" data-conta="1284">0</p>
                    <p class="numero__var su">+8.1%</p>
                  </article>
                  <article class="numero pezzo" data-pezzo="numero">
                    <p class="tenue piccolo">Conversion</p>
                    <p class="numero__cifra" data-conta="3.6" data-decimali="1" data-suffisso="%">0%</p>
                    <p class="numero__var su">+0.4%</p>
                  </article>
                  <article class="numero pezzo" data-pezzo="numero">
                    <p class="tenue piccolo">Refunds</p>
                    <p class="numero__cifra" data-conta="0.8" data-decimali="1" data-suffisso="%">0%</p>
                    <p class="numero__var giu">−0.2%</p>
                  </article>
                </div>

                <div class="sotto">
                  <article class="grafico pezzo" data-pezzo="grafico">
                    <div class="grafico__testa">
                      <p>Sales this month</p>
                      <p class="tenue piccolo">Oct 1 to Oct 26</p>
                    </div>
                    <svg class="grafico__svg" viewBox="0 0 400 250" aria-hidden="true">
                      <defs>
                        <linearGradient id="riempi" x1="0" y1="0" x2="0" y2="1">
                          <stop offset="0" stop-color="var(--accento)" stop-opacity=".2"/>
                          <stop offset="1" stop-color="var(--accento)" stop-opacity="0"/>
                        </linearGradient>
                      </defs>
                      <path class="grafico__righe" d="M0 62.5H400M0 125H400M0 187.5H400"/>
                      <path class="grafico__area" data-area fill="url(#riempi)"/>
                      <path class="grafico__linea" data-linea pathLength="1"/>
                    </svg>
                  </article>

                  <article class="tabella pezzo" data-pezzo="tabella">
                    <div class="tabella__testa"><p>Latest orders</p><p class="tenue piccolo">View all</p></div>
                    <div class="righe" data-righe>
                      <div class="riga" data-riga><span>#3021</span><span>Mara Okafor</span><span class="cifre">$129.00</span><span class="stato stato--ok">Paid</span></div>
                      <div class="riga" data-riga><span>#3020</span><span>Jonas Weil</span><span class="cifre">$84.50</span><span class="stato" data-stato>Pending</span></div>
                      <div class="riga" data-riga><span>#3019</span><span>Sana Rahimi</span><span class="cifre">$212.00</span><span class="stato stato--ok">Paid</span></div>
                      <div class="riga" data-riga><span>#3018</span><span>Theo Lind</span><span class="cifre">$46.90</span><span class="stato stato--via">Shipped</span></div>
                      <div class="riga" data-riga><span>#3017</span><span>Ines Varga</span><span class="cifre">$58.20</span><span class="stato stato--ok">Paid</span></div>
                      <div class="riga" data-riga><span>#3016</span><span>Ola Berg</span><span class="cifre">$310.00</span><span class="stato stato--via">Shipped</span></div>
                    </div>
                  </article>
                </div>
              </div>
            </div>
          </div>
          <svg class="puntatore" data-puntatore viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5 18.5 12l-6 1.5L9.5 19z"/></svg>
        </div>
        </div>
      </div>
    </section>

    <footer class="piede">
      <p>Ledgerline keeps a small shop’s numbers in one calm place.</p>
    </footer>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

75 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 “Dashboard assembly” 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 very light grey background sits the product section of Ledgerline, a made-up analytics app for online shops: on the left an indigo line and a big sentence, on the right the white frame of a window with the app’s address and nothing inside. As you scroll the stage stays put and the dashboard assembles: the sidebar slides in from the left with its items and the plan, the header drops from above with «Overview», the search and the avatar, four numbers rise from below one after the other while they count up to $48,210, 1,284 orders, 3.6% and 0.8%, the sales chart comes in from the right and its line draws itself before the area fills, the latest orders table rises from below and its rows slide in from the left one by one. Every piece lands on a short spring that overshoots by a hair, its shadow tightens as it settles and a sweep of light runs over it the moment it arrives. Meanwhile the line at the side changes three times and says what is arriving. At the end a pointer comes down to the pending row, presses it, the row lights up and its status turns from Pending to Paid. Scroll back up and everything comes apart in reverse.

How it works

A window drawn large

The window is drawn at 960 by 600 and a container scales it to fit the stage: the scale is recomputed on every resize from the room left beside (or below, on the phone) the lines. Everything stays in proportion and the pieces move in window pixels, not screen pixels.

One timeline for the whole scroll

A paused timeline holds a fromTo for every piece, each with its own direction and the same back.out spring; the numbers also count, the chart line with pathLength 1 draws itself by taking strokeDashoffset from 1 to 0, the table brings its rows one by one. ScrollTrigger drives it with scrub from top to bottom of the section; the stage is sticky and Lenis does the smooth scrolling.

Shadow, sweep and lines on arrival

Each card’s shadow goes from wide and low to thin along with the spring. The sweep is an ::after with a gradient moved by a CSS variable: when the timeline passes a piece’s arrival, a separate tween runs it across; going back below the arrival re-arms it. The lines change with the timeline’s time, through a tween that does not depend on the scroll.

The click at the end

When the timeline reaches the end a small independent timeline starts: the pointer goes to the pending row (its position is measured and divided by the scale), presses, the row lights up and the status rolls to Paid. Going back above the end puts everything back.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the dashboard takes to assemble: 2 is twice as long.
DISTANCEscript.js1How far each piece starts from its place: 0 already there, 2 twice as far.
SETTLEscript.js1.6How much each piece overshoots its place before it settles.
FLASHscript.js1How bright the sweep of light on a piece that lands is: 0 none.
CLICKscript.js11: at the end a pointer opens an order; 0: no pointer.

Try them in the Playground

When to use it

For the product section of a SaaS landing page, an app with a dashboard or a tool for online shops: instead of a still screenshot, the visitor watches the interface build itself, and each line beside it says what the arriving piece is for.

On phones

The same animation with adapted sizes: the lines move above the window, on two lines, and the whole window scales down to fit the box, with the same pieces and the same spring.

With reduced motion

The dashboard is already assembled and fades in: the numbers sit at their values, the chart is drawn and the table is full, with no movement, and the line at the side is the last one.

Pitfalls

  • The scale goes on one element only (the frame) and the room it takes in the stage on another: a transform does not change the layout size, and without the container the large window would push the lines out.
  • Checking arrivals in the ScrollTrigger’s onUpdate is not enough: when the wheel stops the scrub keeps going and the last piece would miss its sweep. It belongs on the timeline.
  • The pointer’s position is measured with getBoundingClientRect and divided by the scale, because the pointer lives inside the scaled frame.
  • Never once: true on a timeline with a ScrollTrigger: opening the page already scrolled down would freeze everything.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.0 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 26 October 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