Skip to content
animorio
IT
All components

Go live button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The Go live button of an app for going live, in a minimal premium style like a Dribbble shot: an obsidian pill on black with a one pixel edge that catches the light. Pressed, the disc counts 3, 2, 1 with rolling digits while a light runs round the edge; at zero the red floods out of the disc, the word becomes Live, the broadcast antenna breathes and the viewers climb like an odometer, 12, 48, 1.2K, with faces joining in a row. Pressed again it asks End stream? and a second tap ends the stream.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.

<!doctype html>
<!--
  "Go live 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 Go live button with the countdown and the rising audience</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 Go live button of a streaming studio app, on black: an obsidian pill with a 1px edge that catches the
         light. Pressed, the disc counts 3, 2, 1 with rolling digits while a light runs round the edge; then the red
         floods out of the disc, the word becomes Live, the broadcast sign breathes and the audience climbs like an
         odometer while small faces join in a row. Pressed again it asks End stream?; a second press ends it -->
    <div class="gl" data-wrap>
      <span class="gl__spill" data-spill aria-hidden="true"></span>
      <button class="gl__btn" type="button" data-btn aria-pressed="false" aria-label="Go live">
        <span class="gl__body" data-body>
          <span class="gl__fill" aria-hidden="true"></span>
          <span class="gl__red" data-red aria-hidden="true"><span class="gl__red-glow" data-red-glow></span></span>
          <span class="gl__wine" data-wine aria-hidden="true"></span>
          <span class="gl__shine" data-shine aria-hidden="true"></span>
          <span class="gl__sweep" aria-hidden="true"><span class="gl__sweep-band" data-sweep></span></span>
          <svg class="gl__edge" data-edge aria-hidden="true">
            <defs>
              <linearGradient id="gl-edge" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0" stop-color="#ffffff" stop-opacity="0.42"/>
                <stop offset="0.45" stop-color="#ffffff" stop-opacity="0.08"/>
                <stop offset="1" stop-color="#ffffff" stop-opacity="0.03"/>
              </linearGradient>
            </defs>
            <rect class="gl__edge-base" data-rect x="0.5" y="0.5" width="10" height="10" rx="5"/>
            <rect class="gl__edge-run" data-rect data-run x="0.5" y="0.5" width="10" height="10" rx="5" pathLength="1"/>
          </svg>
          <span class="gl__row">
            <span class="gl__disc" aria-hidden="true">
              <span class="gl__plate" data-plate></span>
              <svg class="gl__sig" data-sig viewBox="0 0 24 24">
                <path class="gl__arc" data-arc="in" d="M8.6 5.9a4.6 4.6 0 0 0 0 6.2"/>
                <path class="gl__arc" data-arc="in" d="M15.4 5.9a4.6 4.6 0 0 1 0 6.2"/>
                <path class="gl__arc" data-arc="out" d="M6.1 3.6a8 8 0 0 0 0 10.8"/>
                <path class="gl__arc" data-arc="out" d="M17.9 3.6a8 8 0 0 1 0 10.8"/>
                <path class="gl__mast" d="M12 10.4l-3 9.4M12 10.4l3 9.4M10 16.7h4"/>
                <path class="gl__tip" d="M12 7.2l1.7 1.8L12 10.8 10.3 9z"/>
              </svg>
              <span class="gl__num" data-num></span>
            </span>
            <span class="gl__text" aria-hidden="true">
              <span class="gl__state" data-state="rest">
                <span class="gl__title" data-t>Go live</span>
                <span class="gl__sub"><span class="gl__sub-text" data-show>Studio cam · 1080p60</span></span>
              </span>
              <span class="gl__state" data-state="count">
                <span class="gl__title" data-t>Going live in</span>
                <span class="gl__sub"><span class="gl__sub-text">Tap to cancel</span></span>
              </span>
              <span class="gl__state" data-state="live">
                <span class="gl__title gl__title--live" data-t>Live</span>
                <span class="gl__sub"><span class="gl__sub-text gl__sub-text--live"><span data-clock>00:00</span> · 1080p60</span></span>
              </span>
              <span class="gl__state" data-state="confirm">
                <span class="gl__title" data-t>End stream?</span>
                <span class="gl__sub"><span class="gl__sub-text gl__sub-text--live">Tap again to end</span></span>
              </span>
              <span class="gl__state" data-state="ended">
                <span class="gl__title" data-t>Stream ended</span>
                <span class="gl__sub"><span class="gl__sub-text" data-recap>1.2K watched · 0:06</span></span>
              </span>
            </span>
            <span class="gl__side" aria-hidden="true">
              <span class="gl__go" data-go>
                <svg viewBox="0 0 16 16"><path d="M5.2 3.6L9.8 8l-4.6 4.4"/></svg>
              </span>
              <span class="gl__aud" data-aud>
                <span class="gl__faces">
                  <span class="gl__face" data-face>
                    <svg viewBox="0 0 20 20"><defs><linearGradient id="gl-f1" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f4b48c"/><stop offset="1" stop-color="#d9825f"/></linearGradient></defs><rect width="20" height="20" fill="url(#gl-f1)"/><path d="M3.6 20c.6-3.6 3.2-5.6 6.4-5.6s5.8 2 6.4 5.6z" fill="#7a3b2a"/><circle cx="10" cy="9" r="3.5" fill="#fbe2cf"/><path d="M6.4 8.6c0-2.6 1.6-4.2 3.6-4.2s3.6 1.4 3.6 3.8c-1.3-.9-2.6-1.6-4-1.6-1.3 0-2.3.7-3.2 2z" fill="#3a2119"/></svg>
                  </span>
                  <span class="gl__face" data-face>
                    <svg viewBox="0 0 20 20"><defs><linearGradient id="gl-f2" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9fb3ff"/><stop offset="1" stop-color="#5f74d6"/></linearGradient></defs><rect width="20" height="20" fill="url(#gl-f2)"/><path d="M3.6 20c.6-3.6 3.2-5.6 6.4-5.6s5.8 2 6.4 5.6z" fill="#1f2a5c"/><circle cx="10" cy="9" r="3.5" fill="#c99573"/><path d="M6.3 9.2c-.2-3 1.4-4.9 3.7-4.9 2.4 0 3.9 1.8 3.7 4.9-.5-1.4-1.6-2.4-3.7-2.4s-3.2 1-3.7 2.4z" fill="#14110f"/></svg>
                  </span>
                  <span class="gl__face" data-face>
                    <svg viewBox="0 0 20 20"><defs><linearGradient id="gl-f3" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#b6e3c9"/><stop offset="1" stop-color="#5fa884"/></linearGradient></defs><rect width="20" height="20" fill="url(#gl-f3)"/><path d="M3.6 20c.6-3.6 3.2-5.6 6.4-5.6s5.8 2 6.4 5.6z" fill="#e9efe9"/><circle cx="10" cy="9" r="3.5" fill="#8a5a3f"/><path d="M5.9 10.6c-.6-3.6 1.2-6.2 4.1-6.2s4.7 2.6 4.1 6.2c-.3-2-1.6-3.6-4.1-3.6s-3.8 1.6-4.1 3.6z" fill="#2b1a12"/></svg>
                  </span>
                </span>
                <span class="gl__count" data-count></span>
              </span>
              <span class="gl__endchip" data-endchip>End</span>
            </span>
          </span>
        </span>
      </button>
    </div>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

32 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 “Go live 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 pure black there is a single pill button 60 pixels tall, in obsidian with a very fine grain: its edge is a one pixel hairline that catches the light at the top and fades at the bottom. On the left a glossy red disc with the broadcast antenna drawn in SVG, a small mast with a diamond on top and two pairs of waves on its sides; in the middle Go live and under it Studio cam · 1080p60; on the right a glass circle with an arrow. With the mouse over it a soft light follows the pointer, the word widens on the width axis, the arrow leans out and the antenna waves widen once. Pressed, the button sinks by a pixel and springs back; the antenna goes out, the disc turns dark and the 3, the 2 and the 1 drop into it, each rolling up from below and settling, while a white light runs round the edge of the pill in three beats. A tap during the count cancels it. At zero the red spreads out of the disc like a stain until it fills the pill, a reflection crosses it, the floor beneath turns red, the word says Live with the time running, 00:01, 00:02, the antenna comes back and breathes, first the near waves and then the far ones, and on the right three small faces join one after the other in a chip on a spring while the audience climbs like an odometer, 12, 48, 126, 389, 1.2K, the changing digits rolling from the right. Pressed again, the red darkens to wine, the button gives a small shake, the word asks End stream?, a white End key takes the place of the audience and the edge light drains away: if it is not pressed again it goes back to Live, if it is the red shrinks back into the disc and the word says Stream ended with how many watched and how long it lasted, then Go live again. Until someone touches it, it goes round by itself.

How it works

Obsidian in layers

The button is a single box (moved only by GSAP) with absolute layers: obsidian with feTurbulence grain and a gradient from the top, the red lacquer of the stream, the wine of the confirmation, the light under the pointer driven by two CSS variables through gsap.quickTo and the reflection band. The edge is an SVG on top of everything with two rounded rects: one with a gradient from the top (the hairline catching the light), the other for the running light.

The light running round the edge

The second rect has pathLength 1, so stroke-dasharray goes from 0 to 1 over the whole countdown and from 1 to 0 over the confirmation time. Width, height and radius of the rects are recomputed on resize from the pill’s real size. The dash is written in style and not as an attribute, because the CSS rule beats the attribute.

Rolling digits

A roller function aligns the old and the new text to the right and for each changed character sends the old one up out of its window and brings the new one in from below, staggered by 50 ms from the right, with a light back.out (and a vertical stretch for 3, 2, 1). It drives both the countdown and the audience: going from 389 to 1.2K, the extra windows are born and the spare ones shrink to zero.

Red spreading from the disc

The red lacquer has clip-path circle(0px at 30px 50%), the centre of the disc: GSAP takes it to a radius wider than the pill and closes it again at the end. Meanwhile the disc swells on a spring, the antenna comes back with back.out and an endless timeline makes the waves breathe, near ones first and then far ones, scaled around the top of the mast with svgOrigin.

Faces and confirmation

At each step of the audience a face joins (scale, rotation and x on a spring); after the third the last one gives a small hop. The confirmation is a state of the button, not a second button: the wine layer rises, the breathing slows down with timeScale, the End key arrives and a delayedCall goes back to Live if nobody presses again. Esc does the same from the keyboard.

Values to change

NameFileDefaultWhat it changes
COUNT_FROMscript.js3Which number the countdown starts from.
BEATscript.js0.9Seconds for each digit of the countdown.
AUDIENCEscript.js[12, 48, 126, 389, 1240]The audience at each step of the stream; after the last one it keeps growing by itself.
TICKscript.js0.85Seconds between two steps of the audience.
CONFIRMscript.js2.6How many seconds End stream? waits for the second tap before going back to Live.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
HOLDscript.js5.4In the loop, how many seconds it stays live before asking to end.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

When to use it

For an app or a site you go live from: game and sports streaming, a webinar or class platform, a shop’s live selling channel, a broadcast event. It gives time to get ready, says clearly when you are on air, shows how many people are watching and never ends the stream by mistake.

On phones

On the phone the button is at most 86% of the screen wide and long words end with an ellipsis; there is no hover, so the light under the finger turns on at the touch and the rest is the same.

With reduced motion

Nothing moves: the digits change in place with a fade, the red and the wine fade in instead of spreading from the disc, the antenna stays still, the faces and the End key appear in place; the edge light stays, because it tells the time.

Pitfalls

  • The edge light dash written as a stroke-dasharray attribute did not show: the CSS rule beats presentation attributes, so it is written in style.
  • The reflection band, at the end of its run, stayed visible at the end of the pill because it is skewed and sticks out sideways: the run now ends further, at 520%.
  • Asking for confirmation right after the stream opened, killing the arrival timeline left the red halfway: the confirmation no longer kills that timeline, and the light breathing in the red is a separate tween.
  • The edge rect in a stretched SVG deformed its corners: viewBox, width, height and radius are recomputed from the real size on every resize.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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