
The elastic button
Buttons, Hover, Text
The «Master track» button of an invented app that masters songs with artificial intelligence, on black: above it sits the track with its cover, the loudness in LUFS and a low, grey waveform. Pressed, liquid chrome rises inside the pill, its surface rippling to the rhythm of the music and throwing small droplets, while a violet line reads the waveform and every bar swells into chrome up to the −1 dBTP ceiling with a bounce; the loudness climbs from −18.4 to −9.0 LUFS. At the end the metal reaches the top, settles, a reflection sweeps across it and the label turns into «Mastered» with a tick.
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>
<!--
"Master track button" 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 Master track button with a liquid metal wave that swells</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" data-stage>
<!-- an AI mastering app: press Master track and liquid chrome rises inside the button, its surface rippling with the
music, while a playhead crosses the waveform above and every bar swells to its mastered, louder height -->
<section class="tool" data-card aria-label="AI mastering">
<header class="tool__head">
<p class="tool__brand">
<span class="tool__logo" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M3.5 12h2.2l1.8-5 3 10 3-14 3 13 1.8-4h2.2"></path></svg></span>
<span data-brand>Ferrite</span>
</p>
<span class="tool__chip">AI Mastering</span>
</header>
<div class="track">
<img class="track__cover" src="low-tide.webp" alt="Cover of the track: the sun setting over a rocky shore" width="480" height="318">
<div class="track__meta">
<p class="track__title">Low Tide</p>
<p class="track__sub">Nora Vale · 3:42 · WAV</p>
</div>
<p class="track__lufs" data-lufs-box>
<span class="roll"><span class="roll__in track__num" data-lufs>−18.4</span></span>
<span class="track__unit">LUFS</span>
</p>
</div>
<p class="legend" aria-hidden="true"><span>Waveform</span><span class="legend__ceil">Ceiling −1.0 dBTP</span></p>
<div class="wave" data-wave-box>
<span class="wave__ceil wave__ceil--top" data-ceil aria-hidden="true"></span>
<span class="wave__ceil wave__ceil--bottom" data-ceil aria-hidden="true"></span>
<canvas class="wave__bars" data-wave aria-hidden="true"></canvas>
<span class="wave__head" data-head aria-hidden="true"></span>
</div>
<div class="master-wrap" data-wrap>
<button class="master" type="button" data-btn aria-live="polite">
<canvas class="master__metal" data-metal aria-hidden="true"></canvas>
<span class="master__ripple" data-ripple aria-hidden="true"></span>
<span class="master__label master__label--light" data-label>
<svg class="ic" viewBox="0 0 24 24" aria-hidden="true">
<g class="ic__bars"><path d="M5 10v4"></path><path d="M9.5 6.5v11"></path><path d="M14 8.5v7"></path><path d="M18.5 4.5v15"></path></g>
<path class="ic__ok" d="M5 12.5l4.2 4.2L19 7"></path>
</svg>
<span class="roll"><span class="roll__in" data-word>Master track</span></span>
</span>
<span class="master__label master__label--dark" data-label aria-hidden="true">
<svg class="ic" viewBox="0 0 24 24">
<g class="ic__bars"><path d="M5 10v4"></path><path d="M9.5 6.5v11"></path><path d="M14 8.5v7"></path><path d="M18.5 4.5v15"></path></g>
<path class="ic__ok" d="M5 12.5l4.2 4.2L19 7"></path>
</svg>
<span class="roll"><span class="roll__in" data-word>Master track</span></span>
</span>
</button>
</div>
<p class="tool__hint"><span class="roll"><span class="roll__in" data-hint>Style: Warm · Target: Streaming</span></span></p>
</section>
<svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3l14 8.2-6.2 1.4 3.6 6.8-2.6 1.4-3.6-6.8L5 18.6z"></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.
27 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 “Master track button” from Animorio and fit it into my siteThe waveform is not an audio file: for each bar a value comes from a hand-written envelope (quiet intro, verse, build, chorus, fade) times a fixed noise computed with a sine, louder every four bars like a beat. Two heights come out of it: the raw song’s, low, and the mastered one, compressed with a power below one and cut at the ceiling, as a limiter does.
Every bar has its own height and speed: each frame the force is the distance from the right height times the stiffness minus the speed times the damping, with the time step capped at 1/30 of a second. When the reading line passes it, the right height becomes the mastered one: the bar rises, goes a pixel too far and settles. A second spring moves the colour from grey to chrome.
Inside the pill there is a canvas the same size. The metal’s surface is a horizontal line at the level’s height, moved by three sines running in time; their amplitude follows the song’s loudness at the point the line is reading, smoothed. The path masks a vertical gradient of light and dark bands, the chrome, with a white meniscus on the edge and a violet glint just below.
In the loud parts of the song, at random, a droplet leaves the surface with an upward push; gravity brings it down and it disappears as soon as it is back under the surface. It is drawn with a white and grey radial gradient, a little chrome ball.
Progress, level, ripple, reflection and the line’s light are one object animated by a GSAP timeline: the same surface height uncovers the dark copy of the label (clip-path), the same progress moves the line, swells the bars and counts the LUFS. The way back uses the same values in reverse.
| Name | File | Default | What it changes |
|---|---|---|---|
BRAND | script.js | Ferrite | The name of the invented mastering app. |
ACCENT | script.js | #b3a4ff | The colour of the line that reads the song, of the glint on the metal and of the finished loudness. |
TARGET | script.js | -9 | The final loudness in LUFS after mastering. |
MIX | script.js | 3.2 | The seconds of the mastering, while the line crosses the waveform. |
WAVE | script.js | 1 | How much the surface of the liquid metal ripples. |
SPRING | script.js | 1 | How much the waveform bars bounce as they swell. |
HOLD | script.js | 2.4 | The seconds the button stays on Mastered before going back. |
PAUSE | script.js | 1.2 | The seconds the autopilot waits between one round and the next. |
For an artificial intelligence action on an audio or video file that takes a few seconds: mastering, voice clean-up, stem separation, normalisation, export. The button itself becomes the progress, and the result is seen growing in the waveform at the same pace.
The card takes the full width minus the margins; cover, waveform and button are also sized on the height with min() and vh, and both canvases are redrawn on resize, even halfway through (the number of bars is worked out again from the width). On phones the rim, the tilt and the sip of metal follow the finger only while touching.
No rising metal, ripples, droplets, springs, tilt or drawn pointer: on click the chrome and the mastered bars fade in and the labels and the loudness change at once.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 6 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.