Skip to content
animorio
IT
All components

Master track button

Buttons, HoverGSAP, Canvas, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>&minus;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 &minus;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>

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.

27 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 “Master track button” 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 black sits the card of Ferrite, an invented app that masters songs with artificial intelligence: the mark with its little wave, the AI Mastering tag, the track «Low Tide» with its cover (a real photo of the sun setting over a rocky shore), the invented artist, the length, and on the right the loudness, −18.4 LUFS. Below, the track’s waveform in low grey bars, between two dashed lines that mark the −1.0 dBTP ceiling, and the dark «Master track» button with four little bars as its icon. Moving over it, the chrome rim of the button lights up where the pointer is, the pill tilts towards it, a sip of liquid metal surfaces from the bottom and sways, and the little bars of the icon stretch. Pressing squashes the button, a ring of light spreads and the metal jumps a little. On click the label becomes «Mastering» with the percentage and the little bars dance like a meter; inside the pill the chrome rises from the bottom, its surface ripples harder where the song is louder, with a violet glint just beneath it, and throws droplets that fall back in; the label turns dark where the metal covers it, so it reads on the chrome. At the same pace a violet line crosses the waveform and behind it every bar swells into chrome on a spring, bounces and settles; those that touch the ceiling get a white edge, as under a limiter. The loudness counts from −18.4 to −9.0 LUFS. At the end the metal passes the top with a small bounce and calms down, the button swells slightly and settles, a white reflection sweeps across the chrome and the rim, the label rolls to «Mastered» with the tick drawing itself, the loudness turns violet and «Ready to export · WAV 24-bit» appears below. After a moment the metal drains away, the bars go back down from the end of the song to the start and the button turns dark again. A drawn pointer moves over the button and presses it; you can also use it by hand.

How it works

A believable song from two numbers

The 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.

One spring per bar

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.

The liquid metal in the button

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.

The droplets

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.

One timeline

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.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsFerriteThe name of the invented mastering app.
ACCENTscript.js#b3a4ffThe colour of the line that reads the song, of the glint on the metal and of the finished loudness.
TARGETscript.js-9The final loudness in LUFS after mastering.
MIXscript.js3.2The seconds of the mastering, while the line crosses the waveform.
WAVEscript.js1How much the surface of the liquid metal ripples.
SPRINGscript.js1How much the waveform bars bounce as they swell.
HOLDscript.js2.4The seconds the button stays on Mastered before going back.
PAUSEscript.js1.2The seconds the autopilot waits between one round and the next.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The light label would not read on the chrome: there are two identical copies and the dark one is uncovered from below by a clip-path at the same height as the metal’s surface.
  • The −1 dBTP ceiling written inside the waveform ended up under the swollen bars: the legend sits in a row above the waveform.
  • With the mastered height computed with a low power every bar hit the ceiling and the waveform looked like a wall: with 0.8 the chorus stays higher than the verse, as in a real master.
  • The final level has to take the surface past the edge even where it ripples: the height runs from a few pixels below the bottom to a few pixels above the top.
  • A canvas measured with getBoundingClientRect on a tilted or squashed button would take the transformed size: offsetWidth and offsetHeight are used instead.

Libraries

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.

Testing

Tested on 6 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 components