
The glass word
WebGL, 3D, Scroll, Text
Scroll inside the preview
The product page of a made-up perfume house, in Three.js: a slim bottle of clear glass with amber liquid that stays level, which comes apart upwards piece by piece as you scroll, cap, actuator, collar and pump, with the dip tube sliding out of the liquid and dripping, thin callouts on every part, turns to show its glass in profile and finally closes, gives one spray and puts its cap back on.
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>
<!--
"Exploded perfume" 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>Orlaine · Salt Cedar</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
<link rel="stylesheet" href="style.css">
<script type="importmap">
{ "imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.178.0/build/three.module.min.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.178.0/examples/jsm/"
} }
</script>
</head>
<body>
<!-- the product page of a made-up perfume house, Orlaine. The stage sticks while you scroll: a bottle of eau de
parfum, drawn in 3D, comes apart upwards (cap, actuator, collar, the crimp pump pulling its dip tube out of the
liquid, which drips back), turns to show its thin glass in profile, then closes and gives one spray -->
<main>
<section class="vista" data-vista>
<div class="palco" data-palco>
<canvas class="tela" data-tela role="img" aria-label="A perfume bottle coming apart in an exploded view as you scroll"></canvas>
<svg class="fili" data-fili aria-hidden="true"></svg>
<div class="etichette" data-etichette aria-hidden="true"></div>
<header class="testata">
<p class="marchio" data-marchio>Orlaine</p>
<p class="sotto">Maison de parfum</p>
</header>
<div class="racconto" data-racconto>
<div class="capitolo" data-capitolo>
<p class="occhiello">Salt Cedar · Eau de parfum</p>
<h1 class="titolo">A scent, <em>taken apart.</em></h1>
</div>
<div class="capitolo" data-capitolo>
<p class="occhiello">Six parts</p>
<h2 class="titolo">Lifted, <em>piece by piece.</em></h2>
</div>
<div class="capitolo" data-capitolo>
<p class="occhiello">In profile</p>
<h2 class="titolo">Fourteen millimetres of <em>glass.</em></h2>
</div>
<div class="capitolo" data-capitolo>
<p class="occhiello">Salt Cedar · 50 ml</p>
<h2 class="titolo">One spray, <em>then the cap.</em></h2>
<p class="ordina"><span class="prezzo">€148</span><a class="pillola" href="#" data-pillola><span>Add to bag</span></a></p>
</div>
</div>
<p class="nota" data-nota>Scroll to take it apart</p>
</div>
</section>
</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 type="module" 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.
31 values to change
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 “Exploded perfume” from Animorio and fit it into my siteEverything is Three.js geometry built in code: the flacon, the liquid, the thick base and the cap are boxes with rounded edges (RoundedBoxGeometry), the neck, the collar, the actuator, the pump and the dip tube are cylinders, and the spring is a tube following a helix (TubeGeometry on a hand-written curve).
The liquid is a box as big as the inside of the glass, cut by a clipping plane (clippingPlanes) that lives in the world rather than in the bottle: when the bottle tilts the plane stays horizontal and the liquid stays level. The plane tilts slightly on a spring, pushed by how fast the bottle turns: that is the slosh.
ScrollTrigger with scrub drives a number from 0 to 1. Opening happens between 0.08 and 0.42, and within that each part has its own start: the cap at once, the actuator and the collar a little later, the pump last. Each part lifts by its own distance; the pump has its own path, first up out of the liquid, then sideways, then down beside the bottle, and when the bottle turns it circles round it the other way to stay on the right. The camera pulls back just enough for everything to stay on screen.
Once the tip of the dip tube is above the liquid, every three tenths of a second a drop falls under gravity and, when it touches the liquid, lights a ring that widens and fades. On closing, a back.in curve lifts the parts a little more before dropping them, the cap last; once the pump and the actuator are home, the actuator presses down and 150 soft points come out of the nozzle, slowing down, spreading and fading, and only then does the cap arrive.
Each callout has a point on its part, taken every frame into the world (localToWorld) and onto the screen (project): there a small cross and a line that grows out to the words. The words go right or left depending on which side of the bottle’s axis the point is, push each other so they never overlap, and stay inside the screen.
| Name | File | Default | What it changes |
|---|---|---|---|
BRAND | script.js | 'Orlaine' | The perfume house, on the label, the cap and at the top of the page. |
SCENT | script.js | 'Salt Cedar' | The name of the scent on the label. |
SPREAD | script.js | 1 | How far the parts lift when the bottle comes apart. |
FILL | script.js | 0.74 | How full the bottle is. |
TILT | script.js | 1 | How much the pointer or a finger tilts the bottle. |
SLOSH | script.js | 1 | How much the liquid sloshes when the bottle moves. |
MIST | script.js | 1 | How big the spray is when the bottle closes. |
For the product page or the hero of a perfume house, a cosmetics brand, a beauty or fashion shop, and in general to present a small precious object made of parts: the exploded view on scroll tells the materials and the care before the price.
The same animation with adapted sizes: the words sit at the top, the bottle below, and the view pulls back as far as needed so that even when apart it all fits in the box; the callouts go on both sides of the bottle; a finger tilts it by dragging, and the page keeps scrolling.
No long scroll, no drops and no spray: the bottle is already apart and still, with the callouts.
Three.js 0.178.0, GSAP 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB, Three.js + RoomEnvironment 176 KB.
Tested on 28 October 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
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.