Skip to content
animorio
IT
Back to the library

Live concert player

Transitions, HoverGSAP, CanvasAdvancedCompressed weight: Demo 14 KBGSAP 28 KBFreeDownload the zip

A transition animation on a real product piece: the player of a live concert stream, dark and made of glass. Three cameras drawn in canvas (the stage with its beams, the close-up on the microphone, the crowd seen from the stage), the Live badge with the running time, the viewers with rolling digits, hearts and reactions rising, the chat sliding up. When the pointer passes over it a glass bar comes up with the controls and a live thumbnail for each camera: picking one, the thumbnail itself grows into the whole frame and the new shot settles.

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>
<!--
  "Live concert player" 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 live concert video player that switches camera</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 light of the camera on air spills behind the card -->
    <div class="halo" data-halo aria-hidden="true"></div>

    <!-- the player of a live concert stream: three cameras drawn in canvas, the viewers rolling, the reactions rising,
         the chat sliding up. Glass controls come up when the pointer is over the picture; a camera tile grows into
         the whole frame when you pick it -->
    <article class="live" data-card aria-label="Northline live at Halvard Arena">
      <div class="live__view" data-view>
        <div class="cam" data-cam><canvas class="cam__pic"></canvas><span class="cam__edge"></span></div>
        <div class="cam" data-cam><canvas class="cam__pic"></canvas><span class="cam__edge"></span></div>
        <div class="cam" data-cam><canvas class="cam__pic"></canvas><span class="cam__edge"></span></div>
        <span class="live__shade" aria-hidden="true"></span>
        <span class="live__scrim" data-scrim aria-hidden="true"></span>
        <span class="live__grain" aria-hidden="true"></span>

        <div class="live__top">
          <div class="live__on">
            <span class="badge">Live</span>
            <span class="time" data-time>1:42:07</span>
          </div>
          <div class="viewers glass">
            <svg class="viewers__icon" viewBox="0 0 16 16" aria-hidden="true">
              <path d="M1.6 8C3.1 5.1 5.4 3.6 8 3.6s4.9 1.5 6.4 4.4C12.9 10.9 10.6 12.4 8 12.4S3.1 10.9 1.6 8z"/>
              <circle cx="8" cy="8" r="2.2"/>
            </svg>
            <span class="roll" data-viewers aria-label="48.2 thousand watching"></span>
          </div>
        </div>

        <div class="toast" data-toast aria-hidden="true">
          <span class="toast__glass glass">
            <svg class="toast__icon" viewBox="0 0 16 16" aria-hidden="true">
              <rect x="1.6" y="4.2" width="9" height="7.6" rx="2"/>
              <path d="M10.6 7l3.8-2.2v6.4L10.6 9"/>
            </svg>
            <span class="toast__words" data-toast-words>Close-up</span>
          </span>
        </div>

        <div class="react" data-react aria-hidden="true"></div>

        <div class="bar glass" data-bar>
          <button class="ctl" type="button" data-play aria-label="Pause">
            <svg viewBox="0 0 16 16" aria-hidden="true">
              <path class="ctl__pause" d="M5.2 3.6v8.8M10.8 3.6v8.8"/>
              <path class="ctl__play" d="M5 3.4l7.6 4.6L5 12.6z"/>
            </svg>
          </button>
          <button class="ctl ctl--vol" type="button" aria-label="Volume">
            <svg viewBox="0 0 16 16" aria-hidden="true">
              <path d="M2.4 6.2h2.4L8.4 3.4v9.2L4.8 9.8H2.4z"/>
              <path class="ctl__wave" d="M10.8 5.6c.9.7 1.4 1.5 1.4 2.4s-.5 1.7-1.4 2.4"/>
            </svg>
            <span class="vol" aria-hidden="true"><span class="vol__fill" data-vol></span></span>
          </button>
          <div class="tiles" role="group" aria-label="Cameras">
            <button class="tile" type="button" data-tile aria-label="Main stage">
              <span class="tile__face"><canvas class="tile__pic"></canvas><span class="tile__name">Stage</span></span>
            </button>
            <button class="tile" type="button" data-tile aria-label="Close-up">
              <span class="tile__face"><canvas class="tile__pic"></canvas><span class="tile__name">Close</span></span>
            </button>
            <button class="tile" type="button" data-tile aria-label="Crowd">
              <span class="tile__face"><canvas class="tile__pic"></canvas><span class="tile__name">Crowd</span></span>
            </button>
          </div>
          <button class="ctl ctl--full" type="button" aria-label="Full screen">
            <svg viewBox="0 0 16 16" aria-hidden="true">
              <path d="M2.8 6V3.6c0-.5.3-.8.8-.8H6M10 2.8h2.4c.5 0 .8.3.8.8V6M13.2 10v2.4c0 .5-.3.8-.8.8H10M6 13.2H3.6c-.5 0-.8-.3-.8-.8V10"/>
            </svg>
          </button>
        </div>
      </div>

      <div class="live__info">
        <span class="avatar" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M4 15.5c2.2-5.6 4.6-8.4 7.2-8.4 3.6 0 3 9.8 6.6 9.8 1.1 0 2-.7 2.6-2"/></svg>
        </span>
        <div class="live__words">
          <p class="live__title">Northline, Night Two</p>
          <p class="live__sub">Halvard Live <span class="live__sep" aria-hidden="true"></span> Halvard Arena</p>
        </div>
        <button class="follow" type="button" data-follow><span class="follow__face" data-follow-face>Follow</span></button>
      </div>

      <div class="chat">
        <ul class="chat__list" data-chat aria-live="off"></ul>
        <button class="heart" type="button" data-heart aria-label="Send a heart">
          <span class="heart__face" data-heart-face>
            <svg viewBox="0 0 16 16" aria-hidden="true">
              <path data-heart-fill d="M8 13.4C4.4 11 2.2 8.9 2.2 6.3c0-1.8 1.3-3.1 3-3.1 1.2 0 2.2.6 2.8 1.6.6-1 1.6-1.6 2.8-1.6 1.7 0 3 1.3 3 3.1 0 2.6-2.2 4.7-5.8 7.1z"/>
            </svg>
          </span>
        </button>
      </div>
    </article>
    <p class="sr" aria-live="polite" data-said></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.

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 “Live concert player” 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 a near black page with a little grain the dark card of a player rises, its one pixel edge catching the light and behind it a halo in the colour of the camera on air. In the frame, drawn in canvas every frame, the live stream of Northline's concert for the invented channel Halvard Live: the stage with six moving heads on the truss, violet and amber beams sweeping through the haze and the crowd in silhouette jumping on the beat. Top left the red ‘Live’ badge (a word, no dot) and the running time, 1:42:07; on the right a glass pill with an eye and ‘48.2K watching’, its digits rolling each in its own column as the audience changes. Up the right side hearts, sparkles and drawn music notes rise, swaying and fading. Below, the channel and the title with the ‘Follow’ button, and the chat where each new message comes in from below on a spring and pushes the others up, fading at the top. When the pointer passes over the picture a frosted glass bar comes up, its buttons arriving one after the other: pause, volume, three live thumbnails (Stage, Close, Crowd; the one on air has a light ring) and full screen. The thumbnail under the pointer lifts by two pixels; pressed, it gives and comes back on a spring, and the thumbnail itself grows to fill the frame, its corners going from the thumbnail's radius to the frame's, a thread of light on its rim and the picture inside settling from a little closer, while the old one darkens. The camera's name appears in a glass pill, the halo behind the card takes its colour, the viewers go up and a wave of reactions starts. On its own the player moves to the close-up on the microphone (the warm backlight, the drifting bokeh, the anamorphic line), then to the crowd seen from the stage with the light passing over the heads, and back to the stage; in between the chat's heart is pressed and sends up a burst of hearts.

How it works

Three cameras in canvas

Each camera is a function painting on a canvas as big as the frame: gradients, triangle beams with a linear gradient in lighter mode, radial glows, silhouettes with a jump spring on the beat. The crowd and the bokeh are generated once with a seeded random, in shares of the frame, so at every size the picture is the same. Only what shows is painted: the camera on air, the one arriving and the thumbnails while the bar is up.

The thumbnail that becomes the frame

The layer of the new camera starts exactly over the thumbnail: offset and scale taken from the two rectangles, origin top left. A single value from 0 to 1 on an expo.inOut curve drives position and scale together; the corner radius is written divided by the scale, so to the eye it stays as round as the thumbnail and opens to the frame's own. Inside, the picture starts a little closer (SETTLE) and settles more slowly than its container.

Rolling digits

Each digit of the viewers is a column of ten numbers in a window one line tall, faded at top and bottom. When the count changes each column slides with yPercent to its digit, on a back.out with a delay growing to the right.

The glass bar

The bar has a backdrop-filter with blur and saturation, a thread of light on top and a one pixel edge. It rises on a back.out while the buttons arrive staggered by forty milliseconds; the dark veil under it comes with it. On a phone a tap on the picture brings it up or puts it away.

Reactions and chat

Each reaction is an SVG with two separate motions: the long rise on one element and the left and right sway on a yoyo, the entry spring on the inner SVG. The chat adds a line at the bottom of a column justified to the bottom and starts the new line and the old ones from below together: they look pushed up.

Values to change

NameFileDefaultWhat it changes
SWITCHscript.js0.85How long the thumbnail takes to grow into the frame, in seconds.
SETTLEscript.js1.12How much closer the new shot starts before settling (1 = none).
REACTIONSscript.js1.6Reactions rising per second.
CHAT_EVERYscript.js1.7Seconds between two chat messages.
BEAMSscript.js6How many beams light the stage.
BEAM_SPEEDscript.js1How fast the lights sweep.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk on its own.

Try them in the Playground

When to use it

For the page of a live stream: a concert, a match, a festival, a streamed conference; for the ticket page of an event with a stream for those who stay home, or for a video platform with several camera angles.

On phones

The same animation with adapted sizes: the card is as wide as the box and never taller than the screen, the controls and the thumbnails shrink with clamp, the volume loses its bar under 380 pixels; a tap on the picture brings the glass bar up or down.

With reduced motion

The lights stay still, the crowd does not jump, the new camera fades in instead of growing, the reactions appear and vanish in place without rising, the chat and the digits change with a fade.

Pitfalls

  • The growing layer is scaled: its radius has to be written divided by the scale, otherwise the corners start almost square and end huge.
  • GSAP drives scale and offset on the .cam layer and the settling zoom on the canvas inside: two elements, otherwise one transform wipes out the other. In the same way the thumbnails' hover lives on .tile__face and the press on .tile.
  • Painting three large canvases every frame is heavy: only the camera on air and the one arriving are painted, the thumbnails every other frame and only with the bar up.
  • The canvas sizes are redone on resize, because the demo's window changes height while you watch it; a switch halfway through is finished before measuring.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 3 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 animations