Skip to content
animorio
IT
Back to the library

Square-tile logo loader

Intro, SVGGSAPMediumCompressed weight: Demo 7.2 KBGSAP + ScrambleText 32 KBFreeDownload the zip

A loading screen on a night blue: a small square flashes in the middle, the counter slides off to the right and “Loading content” to the left, and a row of nine squares lights up in pairs, from the outside in, while the page loads. At 100% the squares slide by a few pixels and land exactly on the middle cells of the logo’s letters, which build themselves from there on a five by five grid: columns that grow, rows that stretch, strokes that draw themselves. Then the veil lifts on the page.

Rebuilt from scratch studying hubtown.co.in by Unseen Studio: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Square-tile logo 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 whose squares become the logo</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 site of an invented real estate developer -->
  <main class="pagina" data-page>
    <header class="testa">
      <svg class="testa__marchio" data-mini viewBox="0 0 248 40" aria-label="Veyra"></svg>
      <nav class="testa__voci" aria-label="Main">
        <a href="#" data-voce>Projects</a>
        <a href="#" data-voce>Studio</a>
        <a href="#" data-voce>Contact</a>
      </nav>
    </header>
    <div class="apertura">
      <p class="etichetta" data-label><span class="etichetta__quadro"></span>Since 1986</p>
      <h1 class="titolo" data-title>Homes measured<br>in decades</h1>
      <p class="riga" data-line>Veyra plans and builds residential blocks along the river, from the first sketch to the last key.</p>
    </div>
    <div class="cornice" aria-hidden="true"><i></i><i></i><i></i><i></i></div>
  </main>

  <!-- the loader: a row of small squares that light up in pairs while the content loads, then slide into the logo -->
  <div class="caricamento" data-loader role="status" aria-live="polite">
    <div class="centro" data-center>
      <div class="numero" data-count>0%</div>
      <div class="lampo" data-flash></div>
      <svg class="logo" data-logo viewBox="0 0 248 40" aria-hidden="true"></svg>
      <div class="dicitura" data-loading>Loading content</div>
      <div class="pronto">
        <span data-loaded>100% Loaded</span>
        <span data-ready>Ready to Explore</span>
      </div>
    </div>
  </div>

  <button class="pillola" type="button" data-replay>
    <span class="pillola__scritta" data-testo="Replay">Replay</span>
  </button>

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

28 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 “Square-tile logo 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 night blue background a pale blue square appears in the middle, three times the size of its place: it flashes four times as it shrinks. Then the percentage, in mono type, slides above the row to the right edge and “Loading content” below the row to the left edge, while eight more squares appear around the first, barely visible, one after the other from the outside. The fake loading runs fast, stops, starts again and slows near the end; the words brighten as it goes, and at every quarter a pair of squares lights up, the two outermost first. At 100% the row stays lit for a second and a half, the words fade and the squares slide by a few pixels, half a pixel past their place and back: each one lands on the middle cell of a letter of the VEYRA logo. From there the letters build themselves on a five by five grid: columns grow up and down out of their square, the E’s row stretches sideways, the strokes of the V, the R and the A draw themselves, the wedge of the Y opens from its point. Underneath, “100% Loaded” and “Ready to Explore” come out of random letters. Then the veil lifts: underneath is the developer’s page, with the small logo drawing itself at the top, the menu items, the label flickering on like a light finding its contact and the headline lighting up letter by letter in random order. After a pause it starts again.

How it works

A row that knows where to go

The nine squares are spread evenly over the width of the logo (248 units), but each one knows which middle cell it lands on: the difference between its place and the cell is its dx, a few pixels. The middle one does not move: it is the square that flashes at the start.

The fake loading

An object with p from 0 to 100 goes through six stops, each with its own curve (fast, pause, long stretch, stall, last jump). onUpdate writes the percentage, brightens the words from 0.4 to 1 and lights a pair of squares at every quarter.

Letters made of cells and strokes

Each letter is a group scaled by 8: 1 by 1 cells that grow with scaleY or scaleX (with the origin chosen so the square stays where it landed), strokes with pathLength 1 that draw themselves by taking strokeDashoffset from 1 to 0, and a wedge growing from its point. All with cubic-bezier(0.2, 0, 0, 1) in one second, the strokes 67 ms after the cells.

The veil and the page

The loader is a fixed veil over the page: once the letters are built it fades in half a second. The page enters like the original’s: the label flickers eight times in a second (autoAlpha back and forth) and the headline, split into letters, lights up with a 1.1 second stagger in random order.

Values to change

NameFileDefaultWhat it changes
LOAD_TIMEscript.js3.4How many seconds the fake loading takes from 0 to 100.
WAIT_AT_100script.js1.5How many seconds the row stays lit at 100 before sliding into the logo.
FLASHESscript.js4How many times the first square flashes.
FLASH_SIZEscript.js3How big the first square is before it shrinks into place.
FAINTscript.js0.2How visible the squares are before their turn.
SLIDEscript.js0.5How many seconds the squares take to slide onto the letters.
BUILDscript.js1How many seconds the letters take to build themselves.
SCRAMBLEscript.js1How many seconds the scrambled words take to settle.
HOLDscript.js3.4How many seconds the page stays before the loader plays again.
SPEEDscript.js1Speed of everything: 2 twice as fast, 0.5 half as fast.

Try them in the Playground

When to use it

For the loader or the opening of the site of a developer, an architecture studio, a technical company or anyone with a geometric logo: the row that lights up really says how much is left, and the logo is born from the same squares.

On phones

The same animation: the row and the logo take up almost the whole width of the box, the mono words stay small but readable, and the page underneath has its headline on two lines.

With reduced motion

Nothing flashes or slides: the logo appears already built, with the two lines of text, in a fade; then the veil fades away on the page, which appears all at once.

Pitfalls

  • The cells grow with scaleY or scaleX, and the origin must be chosen cell by cell: in the middle for a column growing up and down, at the top or bottom for one growing one way. With the wrong origin the square that just landed jumps away.
  • The diagonal strokes of the V and the R stick out of the grid with their corners: each letter has a five by five clipPath that cuts them straight.
  • The counter and the words move with GSAP’s left and xPercent: a translate in the CSS would add to it and push them out of place.
  • The strokes start inside the neighbouring column (half a cell in), otherwise antialiasing leaves a thread of background between the cell and the stroke.

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 7.2 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