
Ink that reveals
WebGL, Hover
A WebGL animation for an AI app: the card of a working agent is a slab of thick dark glass with liquid light running inside it (waves of colour, soft caustics like the bottom of a pool, a controlled iridescence between ice and lilac). While the agent thinks the light runs fast and bright; the steps tick one at a time and each check drops a ring into the glass; when it is done the light slows down and settles. The pointer bends the light like a finger in water.
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>
<!--
"Liquid light agent card" 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 agent card with liquid light in the glass</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/jetbrains-mono@5.3.0/wght.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the card of Quaylight, an AI agent that reconciles payouts. The card is a slab of thick glass: inside it a
WebGL shader draws liquid light (refraction, soft caustics, a controlled iridescence) that runs faster while
the agent thinks and settles when it is done. The pointer bends the light like a finger in water. On top of
the glass, the agent's steps tick one at a time -->
<div class="glow" data-glow aria-hidden="true"></div>
<section class="slab" data-slab aria-label="Quaylight agent">
<canvas class="slab__light" data-canvas aria-hidden="true"></canvas>
<span class="slab__bevel" aria-hidden="true"></span>
<span class="slab__sheen" data-sheen aria-hidden="true"></span>
<div class="slab__body">
<header class="head">
<span class="head__mark" data-mark aria-hidden="true">
<svg viewBox="0 0 24 24">
<path class="head__drop" d="M12 3.2c3.6 4.3 6 7.6 6 10.6a6 6 0 0 1-12 0c0-3 2.4-6.3 6-10.6z"/>
<path class="head__wave" data-wave d="M8.2 14.6c1.3-1 2.5-1 3.8 0s2.5 1 3.8 0"/>
</svg>
</span>
<span class="head__who">
<span class="head__name">Quaylight</span>
<span class="head__role">Payouts agent</span>
</span>
<span class="state" data-state>
<span class="state__words" data-state-words>Thinking</span>
<span class="state__time" data-time>0.0s</span>
</span>
</header>
<p class="task">Reconcile October payouts against the ledger</p>
<ol class="steps" data-steps>
<li class="step" data-step data-took="1.4s">
<span class="tick" aria-hidden="true">
<svg viewBox="0 0 20 20">
<circle class="tick__track" cx="10" cy="10" r="7.5"/>
<circle class="tick__spin" cx="10" cy="10" r="7.5" pathLength="1"/>
<circle class="tick__fill" cx="10" cy="10" r="0"/>
<path class="tick__check" d="M6.6 10.3l2.3 2.3 4.6-5" pathLength="1"/>
</svg>
</span>
<span class="step__name">Reading the October ledger</span>
<span class="step__took" data-took-out></span>
</li>
<li class="step" data-step data-took="2.2s">
<span class="tick" aria-hidden="true">
<svg viewBox="0 0 20 20">
<circle class="tick__track" cx="10" cy="10" r="7.5"/>
<circle class="tick__spin" cx="10" cy="10" r="7.5" pathLength="1"/>
<circle class="tick__fill" cx="10" cy="10" r="0"/>
<path class="tick__check" d="M6.6 10.3l2.3 2.3 4.6-5" pathLength="1"/>
</svg>
</span>
<span class="step__name">Matching 1,284 payouts</span>
<span class="step__took" data-took-out></span>
</li>
<li class="step" data-step data-took="1.7s">
<span class="tick" aria-hidden="true">
<svg viewBox="0 0 20 20">
<circle class="tick__track" cx="10" cy="10" r="7.5"/>
<circle class="tick__spin" cx="10" cy="10" r="7.5" pathLength="1"/>
<circle class="tick__fill" cx="10" cy="10" r="0"/>
<path class="tick__check" d="M6.6 10.3l2.3 2.3 4.6-5" pathLength="1"/>
</svg>
</span>
<span class="step__name">Flagging what does not add up</span>
<span class="step__took" data-took-out></span>
</li>
<li class="step" data-step data-took="1.1s">
<span class="tick" aria-hidden="true">
<svg viewBox="0 0 20 20">
<circle class="tick__track" cx="10" cy="10" r="7.5"/>
<circle class="tick__spin" cx="10" cy="10" r="7.5" pathLength="1"/>
<circle class="tick__fill" cx="10" cy="10" r="0"/>
<path class="tick__check" d="M6.6 10.3l2.3 2.3 4.6-5" pathLength="1"/>
</svg>
</span>
<span class="step__name">Writing the report</span>
<span class="step__took" data-took-out></span>
</li>
</ol>
<footer class="foot">
<span class="foot__say">
<span class="foot__line foot__line--work" data-work>Working through the ledger</span>
<span class="foot__line foot__line--done" data-done>3 payouts need a look</span>
</span>
<button class="foot__btn" type="button" data-btn>
<span class="foot__btn-words">Open report</span>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.6 4.4L12.2 8l-3.6 3.6"/></svg>
</button>
</footer>
</div>
</section>
<p class="sr" aria-live="polite" data-live></p>
</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.
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 “Liquid light agent card” from Animorio and fit it into my siteThe WebGL canvas fills the card and draws the whole glass: the base colour, the waves, the caustics, the rings and the edge. Over it sit a CSS bevel (inner shadows: the light thread on top, the dark at the bottom), a veil that calms the light on the left where the words start, and a sheen that slides slowly over the surface.
The waves are two crossed sine waves on coordinates bent by other slow sines (domain warping); the crests take the warm colour. The caustics are the classic tileable pattern with four iterations, sampled twice with a small offset to split red and blue. Everything weighs more towards the bottom right, where the words leave room.
From the distance to the rounded rectangle the shader knows how close it is to the edge: in the last 18 pixels it moves the sample inward, so the light squeezes along the bevel, and there the split between colours grows. A light thread follows the edge, stronger on top.
The phase of the light is not the time: it is summed frame by frame at a speed set by the agent's energy, so changing pace never makes the pattern jump. The energy rides a spring: at the end it drops with a small breath past the mark, and every check gives it a nudge.
The pointer follows a spring and makes a soft dent that pulls the samples towards it, like a lens. There are up to five rings, each with a centre, an age and a strength: a front that widens, bends the coordinates and glows a little. They come from the checks, the button and the pointer every 70 pixels of travel.
A repeating GSAP timeline runs the whole loop: each step lights the spinning arc, moves the timer, then closes the disc with a bounce, draws the check and rolls in the time. The loop starts from the load event.
| Name | File | Default | What it changes |
|---|---|---|---|
FLOW | script.js | 1 | How fast the light runs while the agent thinks. |
CALM | script.js | 0.22 | How fast it runs when the agent is done, as a share of FLOW. |
CAUSTICS | script.js | 1 | How bright the caustics are. |
IRIDESCENCE | script.js | 0.7 | How far the colours slide: 0 one colour, 1 the whole range. |
BEND | script.js | 1 | How much the pointer bends the light. |
RIPPLES | script.js | 1 | How strong the rings from the checks and the pointer are. |
SPEED | script.js | 1 | The agent's pace: 2 is twice as fast. |
LOOP | script.js | true | The agent starts over by itself. |
For an AI app, a dashboard, an accounting or analytics tool: the card that shows an agent at work and has to make you feel it is thinking, with a light that tells its state better than a spinner.
The same animation with adapted sizes: the card is as wide as the box, the words shrink with the height, the role under the name hides and a finger touching the glass bends the light and leaves rings.
The light stands still: only its brightness changes, with a fade, between working and done. The steps tick with fades, with no spinning arcs, rings or sliding sheen.
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 12 KB; the libraries: GSAP 28 KB.
Tested on 4 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.
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.