Skip to content
animorio
IT
All components

Transcribe button

Buttons, Hover, SVGGSAP, CSS onlyAdvancedCompressed weight: Demo 7.7 KBGSAP 28 KBFreeDownload the zip

The Transcribe button of a made-up app that records meetings and transcribes them with artificial intelligence, on black, with the liquid light of AI apps: a bead of ice blue and lilac light runs along the pill’s border, and under the pointer it splits into three that run to meet it. Pressed, the beads speed up all around the border, then leave it one at a time and flow inside, where they gather into a single drop that trembles in place of the voice waveform while the percentage climbs; at the end the drop firms up into a badge of light with a check and «Transcript ready» arrives with the length and the word count. Then the badge melts and goes back to being a bead on the border.

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>
<!--
  "Transcribe 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 Transcribe button with the liquid light that gathers into a drop</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 Transcribe button of an AI meeting recorder: beads of liquid light ride the border, gather into a drop while it works, and the drop melts into the result badge -->
    <div class="wrap" data-wrap>
      <span class="floor" data-floor aria-hidden="true"></span>
      <button class="tx" type="button" data-tx aria-live="polite">
        <span class="tx__body" data-body>
          <span class="tx__sheen" aria-hidden="true"></span>
          <svg class="tx__wave" data-wave viewBox="0 0 24 24" aria-hidden="true">
            <path d="M5 10v4M9.3 7v10M13.6 9v6M18 6v12"/>
          </svg>
          <span class="tx__label">
            <span class="tx__word" data-word="idle">Transcribe</span>
            <span class="tx__word" data-word="busy">Transcribing</span>
            <span class="tx__word tx__word--done" data-word="done"><span>Transcript ready</span><small>4:12 · 612 words</small></span>
          </span>
          <span class="tx__pct" data-pct aria-hidden="true">0%</span>
        </span>
        <svg class="tx__liquid" data-liquid aria-hidden="true">
          <defs>
            <linearGradient id="liq" data-grad gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="300" y2="0">
              <stop offset="0" stop-color="var(--ice)"/>
              <stop offset="0.55" stop-color="var(--violet)"/>
              <stop offset="1" stop-color="var(--ice)"/>
            </linearGradient>
            <radialGradient id="disc" cx="0.38" cy="0.32" r="0.8">
              <stop offset="0" stop-color="#ffffff"/>
              <stop offset="0.35" stop-color="var(--ice)"/>
              <stop offset="1" stop-color="var(--violet)"/>
            </radialGradient>
            <filter id="goo" data-filter filterUnits="userSpaceOnUse" x="-24" y="-24" width="300" height="108" color-interpolation-filters="sRGB">
              <feGaussianBlur in="SourceGraphic" stdDeviation="1.8" result="b"/>
              <feColorMatrix in="b" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -9" result="g"/>
              <feGaussianBlur in="g" stdDeviation="5" result="h"/>
              <feComponentTransfer in="h" result="halo"><feFuncA type="linear" slope="0.75"/></feComponentTransfer>
              <feMerge><feMergeNode in="halo"/><feMergeNode in="g"/></feMerge>
            </filter>
          </defs>
          <g data-goo filter="url(#goo)" fill="url(#liq)"></g>
          <g data-result opacity="0"><g data-badge>
            <circle data-ring class="tx__ring" r="11" opacity="0"/>
            <circle data-disc r="11" fill="url(#disc)"/>
            <path data-check class="tx__check" d="M-4.6 0.3 L-1.4 3.4 L4.8 -3.2"/>
          </g></g>
          <circle data-glint r="1.6" fill="#fff" opacity="0"/>
        </svg>
      </button>
    </div>
  </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.

22 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 “Transcribe 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, alone in the middle, there is a dark 60 pixel pill, lacquered by a band of light along the top, with the voice waveform drawn in four strokes and the word «Transcribe». A bead of ice blue and lilac light slowly runs along the border, with a short tail that stretches when it goes fast. Hovering brings the pill a touch closer and the bead splits into three that run along the border to the point nearest the pointer and follow it. On tap the pill gives and comes back on a spring; the beads become five, speed up and spread all around the border, the waveform fades out and the percentage appears on the right. Then the beads leave the border one at a time and flow inside along a curve, and where the waveform was they gather into a single drop that grows with a bounce at each arrival and trembles like a voice, with a white glint on top; the pill lights up inside and a reflection of light spreads on the floor below. At a hundred the drop stops, firms up into a badge of light that tightens and comes back a hair too far, the check draws itself in black and «Transcript ready» arrives with «4:12 · 612 words» below. After a moment the badge melts, a bead comes out of the drop and slides onto the border, and «Transcribe» returns. Until someone touches it, the pill plays the gesture by itself.

How it works

The border as a road

The pill is a stadium: two straight runs and two half circles. A function turns a distance along the border into an x, y point, so each bead is just a growing number; for the pointer the nearest of 160 points on the border is picked.

One flow for all the beads

The beads sit at a fixed distance from each other around a shared base: speed, spacing and pointer chasing are three numbers of the same object, which GSAP moves from one state to the next without tweens stepping on each other. Each bead has a tail of three smaller circles, as long as its speed.

Light that turns liquid

The circles live in an SVG group with a goo filter: a blur and a colour matrix that multiplies alpha by 22 and subtracts 9. Where two circles get close their blurred edges add up and merge like drops; a second blur of the same result makes the halo.

Beads flowing inside

Each bead has a pull value from 0 to 1: its point travels from the border to the drop along a Bézier curve through the middle of the pill, and the tail follows a little late, so you see a thread flowing in. At each arrival the drop’s radius grows with back.out; three circles circling on different sines make it tremble.

From drop to badge

At the end the drop reaches 11 pixels, the same size as the crisp badge: in that frame the filter switches off and the badge with its radial gradient takes over without a jump. Then it tightens to 90 percent and comes back with back.out, and the check draws itself with stroke-dashoffset.

Values to change

NameFileDefaultWhat it changes
ICEscript.js#8ee8ffThe cold colour of the liquid light.
VIOLETscript.js#9d86ffThe warm colour of the liquid light.
LABELscript.jsTranscribeThe word at rest.
BUSYscript.jsTranscribingThe word while it works.
DONEscript.jsTranscript readyThe word once it is done.
BEADSscript.js5How many beads of light run on the border while it works.
FLOWscript.js320How fast the beads run around the border while it works, in pixels per second.
WORKscript.js3.4How many seconds the job takes.
HOLDscript.js2.4How many seconds the result stays before the button comes back.
SPRINGscript.js1How springy the press and the badge are: 0.4 calm, 2 very bouncy.
AUTOscript.jstrueThe button plays the gesture by itself until someone touches it.

Try them in the Playground

When to use it

For the button that starts an artificial intelligence job lasting a few seconds, such as transcribing a recording, summarising a call or cleaning up audio: the light gathering says the job is taking shape, the badge firming up says it is ready.

On phones

On the phone the pill stays 60 pixels tall and at most 82 percent of the screen wide; the beads are recomputed on the real size. There is no hover: a tap starts the job at once.

With reduced motion

The bead stays still on the border, the waveform and the words swap with a fade, the percentage still climbs and at the end the light fades out and the badge with the check fades in.

Pitfalls

  • The goo filter multiplies alpha: with circles smaller than a pixel and a half the bead vanished in patches instead of shrinking. Below 0.3 pixels the circle goes straight to zero and the tail shortens with speed, so at rest the bead is a round drop.
  • The blurred drop and the crisp badge swap in one frame: if the badge were bigger than the drop you would see a jump. Both reach 11 pixels before the swap.
  • The autopilot’s invisible pointer and the first real tap can arrive together: old tweens on the beads sent the flow back to rest halfway through the job. When the job starts, every tween on the flow and the beads is stopped.
  • The stadium has to be recomputed when the font arrives and on resize: with the old width the beads ran off the border on the phone.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 10 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