
The liquid grid
Hover, Transitions
The build-your-own bundle of a shop for design assets: four products and a tray with three places. Each product picked flies from its tile to the first free place and lands on a spring; with every place filled a bar lights up and the discount steps up (10% with two, 20% with three), while the price rolls and the full one stays struck through above it. Remove one and the others shift along.
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 builder" 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 builder</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">
<!-- build-your-own bundle in a shop for design assets: each product picked flies into the next free slot
of the tray, the discount steps up with every slot filled and the price rolls -->
<section class="bb" data-bb aria-labelledby="bb-title">
<header class="bb__head">
<span class="bb__name"><b id="bb-title">Build your bundle</b><span class="bb__hint"><span data-hint>Pick 3 and save 20%</span></span></span>
<span class="bb__price"><s data-full></s><b data-total>€0</b></span>
</header>
<div class="bb__grid" role="group" aria-label="Products">
<button class="bb__item" type="button" aria-pressed="false" data-item data-price="39">
<span class="bb__art" data-art aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="14" rx="2.500"></rect><path d="M4 9.500h16M8 13h4M8 15.800h7"></path></svg></span>
<b>UI kit</b><span>€39</span>
</button>
<button class="bb__item" type="button" aria-pressed="false" data-item data-price="19">
<span class="bb__art" data-art aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 4.500 14.300 9.300l5.200.700-3.800 3.600.9 5.200L12 16.300l-4.600 2.500.9-5.200L4.500 10l5.200-.700Z"></path></svg></span>
<b>Icon set</b><span>€19</span>
</button>
<button class="bb__item" type="button" aria-pressed="false" data-item data-price="29">
<span class="bb__art" data-art aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M6 18.500 11 5.500h2l5 13M8 14h8"></path></svg></span>
<b>Typeface</b><span>€29</span>
</button>
<button class="bb__item" type="button" aria-pressed="false" data-item data-price="24">
<span class="bb__art" data-art aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="4.500" y="5.500" width="15" height="13" rx="2.500"></rect><path d="m5 16 4.200-4.200 3.300 3.300 2.200-2.200 4.300 4.100M15 9.300v.200"></path></svg></span>
<b>Mockups</b><span>€24</span>
</button>
</div>
<div class="bb__tray">
<div class="bb__slots" data-slots>
<span class="bb__slot" data-slot></span>
<span class="bb__slot" data-slot></span>
<span class="bb__slot" data-slot></span>
</div>
<div class="bb__tier">
<span class="bb__steps" aria-hidden="true"><i data-step></i><i data-step></i><i data-step></i></span>
<span class="bb__off" aria-live="polite"><span data-off>No discount yet</span></span>
</div>
</div>
<div class="bb__foot">
<button class="bb__clear" type="button" data-clear disabled>Clear</button>
<button class="bb__go" type="button" data-go disabled><span class="bb__gotext"><span data-golabel>Add bundle to cart</span></span></button>
</div>
</section>
<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.
26 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 builder” from Animorio and fit it into my siteThe chosen products sit in a list, in the order they were picked. From it one function works out the full price, the discount, the total, the bars and the words; another rebuilds the tray.
The chip is put in its real place, then where it was is measured (the product’s tile if it is new, the previous place if it moves) and it starts from there: x, y and scale return to zero with FLY and a spring.
Removing a product makes the ones after it change container: the same measure before and after makes them slide instead of jumping.
Three bars with the fill in a CSS variable, and the sentence that always says how far the next step is.
A number taken to the new total by a tween and written on every frame; at the end the exact one is written, with cents if needed.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #d6336c | The colour of the chosen products, of the bars and of the discount. |
TWO | script.js | 10 | The discount in percent with two products. |
THREE | script.js | 20 | The discount in percent with three products. |
FLY | script.js | 0.7 | How long a product’s flight from its tile to the tray lasts. |
SPRING | script.js | 1 | How much the product bounces when it lands: 0.3 = a little, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer fills the tray, swaps a product and empties it. |
In shops that sell in sets: cosmetics, coffee, socks, supplements, digital assets, courses. On the bundle page or inside a product page, when the discount grows with the number of items picked.
The same card, as wide as the screen minus the margins: the four products stay in one row (under 340 pixels names and chips tighten), the flight is measured at the moment of the touch, so it works at any width.
No flights and no springs: the chip fades in at its place, the ones that shift change place in one step, bars, words and price go straight to the new value. The demo does not move by itself.
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 24 November 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.