
The liquid grid
Hover, Transitions
The weight of a JavaScript bundle, in a card on warm white, minimal style: a bar made of its five modules, the kB written large and a mark where the budget stands. Switching on “Minify”, “Tree-shake” and “Gzip” the modules shrink one after the other on a spring, each by its own amount, the kB count down and, when the bar passes under the mark, the budget gets its tick. Pointing at a module shows its name, weight and share.
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>
<!--
"Bundle size" 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>Bundle size</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">
<!-- the weight of a JavaScript bundle: a bar made of its modules, three optimisations to switch on, the
segments shrinking, the kilobytes counting down and the budget mark being met or missed -->
<section class="bs" data-bs aria-label="Bundle size">
<header class="bs__head">
<div class="bs__file"><strong>app.js</strong><span>What ships to the browser</span></div>
<p class="bs__total"><b data-outtotal>412</b><i>kB</i></p>
</header>
<div class="bs__meter">
<div class="bs__track" data-track role="list" aria-label="Modules"></div>
<i class="bs__mark" data-mark aria-hidden="true"></i>
<span class="bs__budget" data-budget aria-hidden="true"><svg viewBox="0 0 12 12"><path pathLength="1" d="M2.400 6.300 4.900 8.700 9.700 3.500"></path></svg><span data-outbudget>Budget 170 kB</span></span>
</div>
<p class="bs__info"><span class="bs__clip"><span data-outinfo>Over budget by 242 kB</span></span></p>
<div class="bs__opts" data-opts>
<button type="button" aria-pressed="false" data-opt="minify"><i aria-hidden="true"><svg viewBox="0 0 12 12"><path pathLength="1" d="M2.400 6.300 4.900 8.700 9.700 3.500"></path></svg></i>Minify</button>
<button type="button" aria-pressed="false" data-opt="shake"><i aria-hidden="true"><svg viewBox="0 0 12 12"><path pathLength="1" d="M2.400 6.300 4.900 8.700 9.700 3.500"></path></svg></i>Tree-shake</button>
<button type="button" aria-pressed="false" data-opt="gzip"><i aria-hidden="true"><svg viewBox="0 0 12 12"><path pathLength="1" d="M2.400 6.300 4.900 8.700 9.700 3.500"></path></svg></i>Gzip</button>
</div>
</section>
<span class="live" aria-live="polite" data-live></span>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>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.
18 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Bundle size” from Animorio and fit it into my siteIts full width is the starting weight: each segment is a fraction of that, written as a percentage calculation, so it holds at any width.
Minifying and compressing take about the same from everything; tree-shaking takes a lot from partly used libraries and nothing from your own code.
On changing a switch every segment goes to its new fraction on a spring, one after the other.
The budget is a position on the same bar: when the total goes under or over it, the label changes and the mark gives a start.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #6a4cff | The colour of the modules. |
BUDGET | script.js | 170 | The maximum weight you set yourself, in kB. |
STAGGER | script.js | 0.05 | How many seconds pass between one module and the next as they shrink. |
SPRING | script.js | 1 | How much the modules bounce when they change size. |
LOOP | script.js | true | Left alone, the demo’s pointer points at a module and switches on the three optimisations. |
On the page of a build tool, a hosting service or a performance monitor; in the documentation of a library that wants to say how much it weighs; and in a developer’s portfolio, to tell the story of an optimisation. The same bar with its mark carries a spending budget, disk space or a meal’s calories.
The card is at most 348 pixels wide and about 255 tall. The three buttons sit on one row, 40 pixels tall; the thinnest segments keep at least 3 pixels, and with a finger a tap on a segment shows its text.
No springs and no counting: segments, number, mark and texts are at the new value at once. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.4 KB; the libraries: GSAP 28 KB.
Tested on 1 December 2026
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.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.