Skip to content
animorio
IT
Back to the library

Liquid light agent card

WebGL, HoverWebGL, GSAPAdvancedCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

31 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 “Liquid light agent card” 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 near black page with grain sits a wide dark card that looks like a slab of thick glass: its top edge catches the light, the bottom is darker, and inside, under the words, liquid light is moving. Waves of colour fold over each other, between ice blue and lilac with a warm glint on the crests, and over them run the thin bright lines of caustics, like sun on the bottom of a pool; along the bevelled edge the light squeezes and splits slightly into its colours, as in real glass. At the top is Quaylight, the payouts agent of a made up app, with its drop mark and the state Thinking shimmering next to a timer; under it the task, Reconcile October payouts against the ledger, and the four steps. The current one has a spinning arc and a light passing over its letters; when it finishes the arc closes into a mint disc, the check draws itself inside, the time it took rolls in on the right and a ring leaves the check and ripples the light in the glass. At the bottom a line says what the agent is doing and changes with each step. While it thinks the light runs and glows brighter; at the end the state becomes Done in 6.4s, 3 payouts need a look and the Open report button appear, and the light slows, settles with a small breath and stays calm. The pointer over the glass gathers the light like a lens and moving it leaves rings; on its own an unseen finger passes through the glass while the agent rests, then the agent starts over.

How it works

The slab is a shader

The 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 liquid light

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.

The thick glass

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.

Fast while it thinks, then calm

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.

A finger in water

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.

The steps

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.

Values to change

NameFileDefaultWhat it changes
FLOWscript.js1How fast the light runs while the agent thinks.
CALMscript.js0.22How fast it runs when the agent is done, as a share of FLOW.
CAUSTICSscript.js1How bright the caustics are.
IRIDESCENCEscript.js0.7How far the colours slide: 0 one colour, 1 the whole range.
BENDscript.js1How much the pointer bends the light.
RIPPLESscript.js1How strong the rings from the checks and the pointer are.
SPEEDscript.js1The agent's pace: 2 is twice as fast.
LOOPscript.jstrueThe agent starts over by itself.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The phase of the light is summed frame by frame: multiplying time by speed would make the pattern jump at every change of pace.
  • The caustics pattern needs high precision (it subtracts 250 and works near that number): with mediump on phones it breaks into blocks.
  • Under the words the light must be calmed (here with a CSS veil on the left), or the bright caustics make the text shimmer.

Libraries

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.

Testing

Tested on 4 November 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