
The star rating
Ratings, SVG, Hover
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.
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>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
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 siteThe 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 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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
COUNT_FROM | script.js | 3 | Which number the countdown starts from. |
BEAT | script.js | 0.9 | Seconds for each digit of the countdown. |
AUDIENCE | script.js | [12, 48, 126, 389, 1240] | The audience at each step of the stream; after the last one it keeps growing by itself. |
TICK | script.js | 0.85 | Seconds between two steps of the audience. |
CONFIRM | script.js | 2.6 | How many seconds End stream? waits for the second tap before going back to Live. |
SPRING | script.js | 1 | How springy the moves are: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 5.4 | In the loop, how many seconds it stays live before asking to end. |
AUTO | script.js | true | The button goes round by itself until someone touches 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 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.
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.
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.
Tested on 12 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.