Skip to content
animorio
IT
All components

Liquid metal send

Buttons, HoverCanvas, GSAPMediumCompressed weight: Demo 7.1 KBGSAP 28 KBFreeDownload the zip

The field of an AI chat, on black: next to Ask anything a round send button closed in a ring of liquid metal, with chrome highlights sliding round and a pale blue thread inside. Under the pointer the metal ripples and lights up on the side the pointer comes from, pressed it tightens, while the answer is thinking it spins faster and glows and the arrow turns into the stop square; once the answer has arrived the metal makes one last wave and settles.

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 metal send" 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 liquid metal send button</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 composer of an AI chat, on black: a pill field and a round send button wrapped in a ring of liquid metal.
         The metal flows, ripples under the pointer, tightens when pressed and spins faster while the answer is thinking -->
    <section class="chat" data-chat aria-label="Corvane assistant">
      <div class="chat__thread" data-thread aria-live="polite">
        <p class="chat__ask" data-ask></p>
        <p class="chat__think" data-think>Thinking</p>
        <p class="chat__answer" data-answer></p>
      </div>

      <form class="composer" data-composer autocomplete="off">
        <svg class="composer__clip" viewBox="0 0 20 20" aria-hidden="true"><path d="M13.6 6.6 8 12.2a1.7 1.7 0 0 1-2.4-2.4l6-6a3 3 0 0 1 4.2 4.2l-6.3 6.3a4.3 4.3 0 0 1-6.1-6.1l5.4-5.4"></path></svg>
        <label class="composer__label" for="q">Message</label>
        <input class="composer__field" id="q" type="text" data-field placeholder="Ask anything" maxlength="120">
        <div class="send" data-send-wrap>
          <canvas class="send__metal" data-metal aria-hidden="true"></canvas>
          <button class="send__btn" type="submit" data-send aria-label="Send message">
            <span class="send__face" data-face>
              <svg class="send__icon send__icon--arrow" data-arrow viewBox="0 0 20 20" aria-hidden="true"><path d="M10 15.5V4.8M5.2 9.4 10 4.6l4.8 4.8"></path></svg>
              <svg class="send__icon send__icon--stop" data-stop viewBox="0 0 20 20" aria-hidden="true"><rect x="6" y="6" width="8" height="8" rx="2"></rect></svg>
            </span>
          </button>
        </div>
      </form>
      <p class="chat__foot" data-foot>Corvane can make mistakes. Check what matters.</p>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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>

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.

19 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 metal send” 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 black background, in the middle, the chat field of the Corvane assistant: a very dark grey pill with a thin border, a line drawn paperclip, Ask anything in Mona Sans and on the right a round button with an up arrow. Around the button there is a ring of liquid metal: light and dark chrome bands sliding at three different speeds, a hot glint where the light gathers, a thin pale blue thread running inside the metal and a hairline of light on the outer edge; the edges of the ring sway slowly like molten metal. With the field empty the ring is duller and the button cannot be pressed. A fake pointer arrives, types Why did churn drop last week?, moves to the button: the metal ripples, swells towards the pointer and lights up on that side, the button grows a touch. Pressed, the ring tightens round the button and springs back; the question rises into the chat thread, the arrow turns and becomes the stop square, the metal spins four and a half times faster, takes on a pale blue glow and the threads become two, while Thinking shimmers above. Then the answer arrives word by word out of a blur, with 2.1% in bold; the square turns back into the arrow and the metal makes one last elastic wave before calming down. Then everything clears and starts again. While waiting, the square stops the answer.

How it works

A ring that sways

The ring is a shape on a canvas redrawn on every frame: 120 points on the outer edge, each at the button’s radius plus a thickness that swings with three sines of different frequencies (4, 7 and 11 waves per turn) moving in time; the inner edge is a circle, and the two are filled together with the evenodd rule.

The chrome

The colour is a 48 stop conic gradient worked out on every frame: for each angle a value made of three waves turning at different speeds becomes a lightness through a power curve, plus a narrow peak around 0.86 that makes the glint. On top, a radial gradient darkens both edges and lightens the middle: the band reads as a round tube, not a flat ribbon.

States are numbers

Wave amplitude, speed, squeeze, glow, how dull it is and the pointer light are fields of one object that GSAP moves from value to value: hovering raises the amplitude and lights the pointer’s side (the angle comes from atan2), pressing squeezes in 0.16 seconds and springs back with back.out, waiting multiplies the speed by THINK_SPEED and adds the canvas’s pale blue shadow.

The answer

The question rises on a spring, Thinking has a gradient sliding through its letters (background-clip text), the answer is split into words that come out of a blur 55 thousandths apart; at the end an elastic push on the waves makes the last ripple. The autopilot is a single timeline that pauses while the answer arrives.

Accessible

It is a real form with a labelled field and a submit button; the button’s name becomes Stop answer while waiting and the chat thread is aria-live. At the first touch or key the autopilot stops. With reduced motion the ring is still, the states only change light and the words fade in.

Values to change

NameFileDefaultWhat it changes
QUESTIONscript.jsWhy did churn drop last week?The question the autopilot types.
ANSWERscript.jsChurn fell to 2.1%, mostly because fewer annual plans were cancelled after the new billing reminder.The answer that arrives word by word.
ACCENTscript.js#8fb4ffThe colour of the thread running in the metal and of the glow.
SPEEDscript.js1How fast the metal flows at rest.
SHINEscript.js1How strong the chrome highlights are.
RIPPLEscript.js1How much the ring ripples under the pointer.
THINK_SPEEDscript.js4.5How many times faster it spins while thinking.
THINK_TIMEscript.js1.8The seconds it thinks before answering.

Try them in the Playground

When to use it

For the field of an AI assistant, a product search that answers in words, an app’s support chat, the box where you ask a dashboard something.

On phones

The pill drops to 58 pixels, the button to 40 and the ring is worked out again on the canvas’s real size; the chat thread has a fixed height that holds a three line answer without moving the field. A tap presses and sends like a click; the hover ripple happens only with a mouse and with the autopilot.

With reduced motion

The ring stays still, without waves or turns; the states only change light and glow, the arrow and the square swap with a fade and the answer appears without moving.

Pitfalls

  • A still conic gradient looks like plastic: the chrome comes from the bands moving at different speeds and from the light peak being narrow. Working out 48 stops on every frame costs next to nothing.
  • Without the radial gradient on top the ring was a flat ribbon; two dark edges and a light line in the middle are enough to make it read as a tube.
  • On the phone the three line answer pushed the field down: the chat thread now has a fixed height measured in vh.
  • The autopilot does not focus the field: in the card’s preview the page would have handed focus to the iframe and scrolled.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 7.1 KB; the libraries: GSAP 28 KB.

Testing

Tested on 25 October 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 components