Skip to content
animorio
IT
Back to the library

Giant counter loader

Transitions, IntroGSAP, CSS onlyMediumCompressed weight: Demo 6.7 KBGSAP + ScrambleText 32 KBFreeDownload the zip

The loading screen of a design studio, on black: the name in the middle rewrites itself in random letters until it settles, and in the bottom right corner a giant counter climbs from 0 to 100 with digits rolling like an odometer, in bursts and pauses like a real download. At 100 the digits slide away, the screen opens in two horizontal curtains and the home arrives underneath, the headline rising line by line.

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>
<!--
  "Giant counter 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>The loader page transition with a giant counter</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the page under the loader: the home of an invented design studio -->
  <main class="casa" data-home>
    <header class="testa">
      <a class="testa__marchio" href="#" data-hl>Mirrow</a>
      <nav class="testa__voci" aria-label="Main">
        <a href="#" data-hl>Work</a>
        <a href="#" data-hl>Studio</a>
        <a href="#" data-hl>Journal</a>
        <a href="#" class="testa__rivedi" data-replay data-hl>
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.2 8a4.8 4.8 0 1 0 1.5-3.5"/><path d="M3 2.6v2.6h2.6"/></svg>
          <span>Replay intro</span>
        </a>
      </nav>
    </header>

    <div class="apertura">
      <p class="etichetta" data-hl>Independent design studio</p>
      <h1 class="titolo" aria-label="We design quiet interfaces for loud ideas">
        <span class="riga"><span class="riga__dentro" data-line>We design quiet</span></span>
        <span class="riga"><span class="riga__dentro" data-line>interfaces for</span></span>
        <span class="riga"><span class="riga__dentro" data-line><em>loud ideas.</em></span></span>
      </h1>
    </div>

    <ul class="lavori" aria-label="Selected work">
      <li class="lavoro" data-work>
        <div class="lavoro__immagine lavoro__immagine--uno"><i></i></div>
        <p class="lavoro__nome">Halvard Banking</p><p class="lavoro__anno">App</p>
      </li>
      <li class="lavoro" data-work>
        <div class="lavoro__immagine lavoro__immagine--due"><i></i></div>
        <p class="lavoro__nome">Tidal Records</p><p class="lavoro__anno">Identity</p>
      </li>
      <li class="lavoro" data-work>
        <div class="lavoro__immagine lavoro__immagine--tre"><i></i></div>
        <p class="lavoro__nome">Sorrel Hotels</p><p class="lavoro__anno">Website</p>
      </li>
    </ul>
  </main>

  <!-- the loader: two black curtains, a scrambled studio name, four status lines and a giant counter -->
  <div class="caricamento" data-loader role="status" aria-live="polite" aria-label="Loading">
    <div class="tenda tenda--su" data-curtain-top></div>
    <div class="tenda tenda--giu" data-curtain-bottom></div>

    <div class="scena" data-stage>
      <p class="stato stato--a" data-status-a>Mirrow Studio</p>
      <p class="stato stato--b"><span data-status-b>Loading fonts</span></p>
      <p class="stato stato--c" data-status-c>Assets 0 / 32</p>

      <div class="nome">
        <p class="nome__scritta" data-name>MIRROW/STUDIO</p>
        <p class="nome__sotto" data-sub>Interfaces, identities, motion</p>
        <div class="nome__linea"><i data-bar></i></div>
      </div>

      <div class="contatore" data-counter aria-hidden="true">
        <span class="cifra" data-col="2"><span class="cifra__nastro"></span></span>
        <span class="cifra" data-col="1"><span class="cifra__nastro"></span></span>
        <span class="cifra" data-col="0"><span class="cifra__nastro"></span></span>
      </div>
    </div>
  </div>

  <!-- a drawn pointer for the autopilot -->
  <svg class="puntatore" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13 7.4-5.9 1.5 3.3 6.1-2.6 1.4-3.3-6.1L5.3 18z"/></svg>

  <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/ScrambleTextPlugin.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.

32 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 “Giant counter 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 black background, in the middle, the name of an invented studio, MIRROW/STUDIO, in monospace type, writes itself in random letters that settle one after another; below it a small line appears and a thin bar fills with the loading. Three status lines sit in the corners: the studio name top left, the phase top right («Loading fonts», «Fetching images», «Building the grid», «Warming up motion», «Ready»), rewritten in random letters at every change, and how many files have arrived bottom left. In the bottom right corner a giant counter climbs from 0 to 100: the ones roll continuously and the tens turn only while the ones go from 9 to 0, like an odometer, in quick bursts and short pauses. At 100 the counter jolts by a pixel, the three digits slide up out of view one after another, the name melts into random letters and the lines fade. Then the screen opens in two curtains, the top one going up and the bottom one down, and underneath is the home on light paper: the headline «We design quiet interfaces for loud ideas.» rises line by line from a mask, the bar at the top and the row of three works arrive right after. The Replay intro link closes the curtains and plays the loading again; the autopilot presses it by itself with a drawn pointer.

How it works

An odometer in three columns

Each digit is a column of stacked numbers, one line high with the rest hidden: moving the column up by as many lines as the digit is worth is enough. The ones move by the value with its decimals, so they roll continuously; the tens take their whole number plus however far the ones have gone past 9, so they turn only in the last stretch, like a real odometer. The tens start with a blank line: no leading zero.

A loading that feels real

The number is driven by a GSAP timeline with six stretches: a quick burst to 23, a pause, a slow climb, a longer stall at 58 (like a file keeping you waiting), a burst to 89 and the last stretch to 100, each with its own curve. Everything else depends on that number: the digits, the line under the name, the phase written at the top and the file count.

Random letters

The name and the phase are written with GSAP’s ScrambleTextPlugin: random letters that settle on the right ones. On the way in the name waits a moment before its letters start settling; on the way out it is written towards nothing, and the letters vanish in the shuffle.

Two curtains and a mask

The curtains are two black halves of the screen, one fixed to the top and one to the bottom, with a pale hairline on the edge where they meet: they open together with expo.inOut. The headline lines sit inside a box with hidden overflow and start 110% lower: they rise with expo.out, staggered, while the curtains are still halfway.

Going back

Replay intro sends the headline lines up and out, closes the curtains in three quarters of a second and starts everything again. The autopilot waits a few seconds on the home, then takes a drawn pointer to the link and presses it.

Values to change

NameFileDefaultWhat it changes
LOAD_TIMEscript.js4.6How many seconds the fake loading takes from 0 to 100.
WAIT_AT_100script.js0.45How many seconds the counter rests on 100 before it leaves.
CURTAINscript.js1.15How many seconds the two curtains take to open.
LINE_STAGGERscript.js0.09How many seconds between the lines of the rising headline.
SCRAMBLEscript.js1.1How many seconds the studio name takes to settle on the right letters.
HOLDscript.js3.6How many seconds the home stays before the autopilot replays the intro.
SPEEDscript.js1The speed of everything (2 = twice as fast, 0.5 = half).

Try them in the Playground

When to use it

For the entrance of a studio’s, an agency’s or a portfolio site, or a launch: it covers the real loading of images and fonts, and the passage to the home becomes a small moment. Wire the counter to real progress, if there is any.

On phones

The same animation: the counter is sized on width and height and stays big in the corner, the monospace name shrinks, the status lines stay small; on the home the headline scales with the height and the works become two.

With reduced motion

Nothing rolls or slides: the loader appears already at 100 with the name written, and after a moment it fades into the home, which is already all in place. Replay intro brings it back with a fade.

Pitfalls

  • The digit columns move in em, not pixels: that way the counter stays right when the window changes size and the type scales.
  • The ones column has an extra zero at the end: rolling from 9 to 10 it must find a 0 under the 9, or it would jump back to the top of the column.
  • The curtains are 50.5% tall each and overlap by a hair: at exactly 50%, at some heights a pale line stays in the middle.
  • The phase at the top is rewritten only when it really changes: calling the scramble every frame would restart it forever.

Libraries

GSAP 3.15.0, ScrambleTextPlugin (GSAP) 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.7 KB; the libraries: GSAP + ScrambleText 32 KB.

Testing

Tested on 25 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