Skip to content
animorio
IT
All components

Join call button

Buttons, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The Join call button of Hallway, a made-up video call app, on black: three people are already talking in the pill, with a thin ring moving to whoever has the floor, three little bars dancing and the call time running. Pressed, the green disc becomes your face and flies to the front of the row on a small arc, while the others slide right one after the other to make room; the pill widens into the call bar with the time, the microphone, the camera and Leave. Leave folds it all away and the row closes up again.

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>
<!--
  "Join call 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 Join call button with the avatars making room in the pill</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 Join call button of Hallway, a made-up video call app: three people are already talking in the pill;
         pressed, the green disc becomes your avatar and flies into the row while the others slide over to make room,
         and the pill opens into the call bar with the timer, the microphone, the camera and Leave -->
    <div class="wrap" data-wrap>
      <div class="pill" data-pill role="group" aria-label="Design sync call">
        <span class="pill__glow" data-glow aria-hidden="true"></span>
        <div class="pill__clip">
          <span class="pill__grain" aria-hidden="true"></span>
          <span class="pill__sheen" data-sheen aria-hidden="true"></span>
        </div>

        <!-- the people in the call; index 0 is you, hidden until you join -->
        <div class="faces" data-faces aria-hidden="true">
          <span class="face face--you" data-face="you" style="--c: var(--you)">You<svg class="badge" data-badge viewBox="0 0 16 16"><circle cx="8" cy="8" r="7.2"/><path d="M6.4 4.6a1.6 1.6 0 0 1 3.2 0v2.6M4.9 7.6a3.1 3.1 0 0 0 4.4 2.8M8 10.9v1.3M4.6 4.6l6.8 6.8"/></svg></span>
          <span class="face" data-face style="--c: var(--p1)">MK</span>
          <span class="face" data-face style="--c: var(--p2)">JO</span>
          <span class="face" data-face style="--c: var(--p3)">AR</span>
        </div>

        <!-- the words: four states stacked in a window, rolled with GSAP -->
        <div class="words" data-words aria-hidden="true">
          <div class="state" data-state="idle">
            <span class="label">Join call</span>
            <span class="sub"><span class="eq" data-eq><i></i><i></i><i></i></span><span data-meet>Design sync</span><span class="sep">·</span><span class="clock" data-clock>12:04</span></span>
          </div>
          <div class="state" data-state="joining">
            <span class="label">Joining</span>
            <span class="sub"><span data-meet>Design sync</span><span class="sep">·</span><span class="clock" data-clock>12:04</span></span>
          </div>
          <div class="state" data-state="call">
            <span class="label label--clock" data-clock>12:04</span>
            <span class="sub" data-count>4 in call</span>
          </div>
          <div class="state" data-state="left">
            <span class="label">You left</span>
            <span class="sub sub--muted">Rejoin anytime</span>
          </div>
        </div>

        <!-- idle: the round green disc; the whole pill is the Join button -->
        <span class="disc" data-disc aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M4 8.2c0-1.2 1-2.2 2.2-2.2h7.1c1.2 0 2.2 1 2.2 2.2v7.6c0 1.2-1 2.2-2.2 2.2H6.2C5 18 4 17 4 15.8Z"/><path d="m15.5 10.6 3.6-2.3c.6-.4 1.4 0 1.4.8v5.8c0 .8-.8 1.2-1.4.8l-3.6-2.3"/></svg>
        </span>
        <button class="join" type="button" data-join aria-label="Join the Design sync call"></button>

        <!-- in the call: microphone, camera, Leave -->
        <div class="controls" data-controls>
          <button class="ctl" type="button" data-mic aria-pressed="false" aria-label="Mute microphone">
            <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="3.6" width="6" height="11" rx="3"/><path d="M5.8 11.4a6.2 6.2 0 0 0 12.4 0M12 17.6V20.4"/><path class="slash" data-slash d="M4.6 4.6 19.4 19.4"/></svg>
          </button>
          <button class="ctl" type="button" data-cam aria-pressed="false" aria-label="Turn camera off">
            <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3.8 8.4c0-1.1.9-2 2-2h7.6c1.1 0 2 .9 2 2v7.2c0 1.1-.9 2-2 2H5.8c-1.1 0-2-.9-2-2Z"/><path d="m15.4 10.6 3.4-2.1c.6-.4 1.4 0 1.4.8v5.4c0 .8-.8 1.2-1.4.8l-3.4-2.1"/><path class="slash" data-camslash d="M4.6 4.6 19.4 19.4"/></svg>
          </button>
          <button class="leave" type="button" data-leave>Leave</button>
        </div>

        <span class="pill__edge" aria-hidden="true"></span>
      </div>
      <p class="sr" data-live aria-live="polite"></p>
    </div>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.

35 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 “Join call 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 a black background there is just a dark pill sixty pixels tall, its body fading from graphite to near black, a very fine grain and a one pixel edge that catches the light along the top. On the left three round faces with initials, MK, JO and AR, overlapping like a row of participants; around one of them runs a thin green ring, which every two seconds hops onto whoever takes the floor with a little bounce. Beside them, Join call, and below three green bars moving like a voice, the name of the call, Design sync, and the time running by the second. On the right a glossy green disc with a camera. On hover the pill lifts by a pixel, the edge thread lights up where the pointer is, the words widen on the wdth axis, the faces fan out a little and the disc tilts. Pressed, the pill gives by a pixel. Then the disc squashes and your face comes out of it, green with You on it: it flies to the front of the row on a small arc, spinning once, and on landing squashes and straightens on an elastic, while the other three slide right one after the other, the last one first, to make room, and the first one gives a little nudge as yours settles against it. Meanwhile the pill widens on a spring and the words roll: first Joining, then the call time in large type with 4 in call below. From where the disc was the microphone, the camera and the red Leave button come out one after the other; a glow runs along the edge and a shine crosses the pill. Touch the microphone and a slash draws across the icon, the key turns light and a small badge with a muted microphone appears on your face; the floor passes to someone else. Leave folds the keys away, your face drops and fades, the others close the row again, the words say You left and the green disc comes back with a hop; a moment later it is all Join call again. A drawn pointer shows the whole loop on its own.

How it works

A pill measured for every state

Inside the pill every part is absolute and GSAP moves it with x: the layout function measures for every state (at rest, in the call, left) where the faces, the words, the disc and the keys go, and how wide the pill is. The tweens read those sizes through function values, so they stay right after a resize or when the typeface arrives.

The flying face and the others making room

Your face starts 1.25 times larger over the disc, which squashes and disappears; it travels to the front of the row in power3.inOut, with two keyframes on y for the arc and one full turn, and lands with a squash in elastic.out. The other three slide one step with back.out and a stagger that starts from the last one.

Rolling words

Four word states sit on top of each other in a window 36 pixels tall: Join call, Joining, the time with 4 in call, You left. The old one rises and fades, the new one comes from below with back.out; the call time is written once a second in every place it appears, with tabular figures.

Who is speaking

The speaker ring is a second, green box-shadow on the face, outside the dark line that separates it from the others: so it stays attached even while the faces fly. Every SPEAK_EVERY seconds it passes to someone else with a little scale bounce, never to you if your microphone is off; the face on the left sits over the next one, so the ring shows whole. The three bars are vertical scales made of two multiplied sines.

Microphone and camera

The two keys are real buttons with aria-pressed: the slash over the icon is a stroke with stroke-dasharray that draws in 0.32 seconds, the key turns light with a CSS transition and the mute badge pops onto your face with back.out.

Values to change

NameFileDefaultWhat it changes
MEETINGscript.jsDesign syncThe name of the call, next to the time.
PEOPLEscript.jsMK, JO, ARThe initials of the three people already in the call.
STARTEDscript.js724How many seconds the call has been running when the page opens.
ACCENTscript.js#3ee08aThe colour of the disc, the speaker ring and your face.
SPRINGscript.js0.9How long the spring that moves the faces to make room lasts.
STAGGERscript.js0.07How many seconds between one face moving and the next.
FLIGHTscript.js0.62How long the flight of the green disc turning into your face lasts.
SPEAK_EVERYscript.js2.2Every how many seconds the floor passes to someone else.
HOLDscript.js5.4How many seconds the autopilot stays in the call.

Try them in the Playground

When to use it

In the bar of a video call or team work app, in a calendar next to a meeting that has already started, in a group chat when a call begins, on the page of an online event or a live class: wherever you want to show who is already there and let people in with one tap.

On phones

The pill in the call is about 330 pixels wide and fits a phone screen; a finger presses like the mouse and the call keys are 36 pixels tall. Without hover the faces do not fan out and the edge light stays in the middle.

With reduced motion

No flights, springs or moving bars: words and keys cross-fade, the pill takes its width at once, your face appears already in place and the speaker ring jumps without a bounce.

Pitfalls

  • With the faces laid out in flex, the widening pill moved them all together and there was no way to start them one after the other: they are absolute and each has its own computed x, so each has its own spring.
  • The speaker ring, made as a separate element, ended up under the neighbouring faces and lagged behind when they moved: it became a box-shadow of the face itself, and the face on the left sits over the next one.
  • Buttons cannot sit inside a button: at rest Join is a transparent button stretched over the whole pill, in the call it hides and the three real keys remain.
  • The call time appears in three different states: it is rewritten in all three once a second, so when the words roll the number does not change halfway.

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 14 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