
The elastic button
Buttons, Hover, Text
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.
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>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
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 siteThe 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 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.
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 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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
QUESTION | script.js | Why did churn drop last week? | The question the autopilot types. |
ANSWER | script.js | Churn fell to 2.1%, mostly because fewer annual plans were cancelled after the new billing reminder. | The answer that arrives word by word. |
ACCENT | script.js | #8fb4ff | The colour of the thread running in the metal and of the glow. |
SPEED | script.js | 1 | How fast the metal flows at rest. |
SHINE | script.js | 1 | How strong the chrome highlights are. |
RIPPLE | script.js | 1 | How much the ring ripples under the pointer. |
THINK_SPEED | script.js | 4.5 | How many times faster it spins while thinking. |
THINK_TIME | script.js | 1.8 | The seconds it thinks before answering. |
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.
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.
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.
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.
Tested on 25 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.