Skip to content
animorio
IT
Back to the library

Team time zones

SVG, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.8 KBGSAP 28 KBFreeDownload the zip

The card of an app for remote teams, in the style of product interfaces: one row per person with their city and local time, and beside it a 24-hour band showing day, work hours and night. Drag the time line and every clock rolls to the new hour, sun and moon take turns, and when the line enters the window where everyone is at work the window lights up as «Best time to meet» and the button to book the meeting comes on.

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>
<!--
  "Team time zones" 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 team across time zones</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 team view of a remote-work app: one row per person with their local time, and a 24-hour band each;
         drag the «now» line and every clock rolls to the new hour, the window where everyone is around lights up -->
    <section class="card" data-card aria-label="Tandemly team hours">
      <header class="head">
        <div class="head__text">
          <p class="head__brand">Tandemly</p>
          <h1 class="head__title">Team hours</h1>
          <p class="head__sub" data-sub>Thursday, your time in Lisbon</p>
        </div>
        <div class="head__now">
          <span class="head__label">Your time</span>
          <span class="clock clock--big" data-clock="me" aria-live="polite"></span>
        </div>
      </header>

      <div class="board" data-board>
        <ul class="people" data-people aria-label="Team"></ul>
        <div class="tracks" data-tracks>
          <div class="ticks" aria-hidden="true">
            <span style="--at:0">00</span><span style="--at:6">06</span><span style="--at:12">12</span><span style="--at:18">18</span><span style="--at:24">24</span>
          </div>
          <div class="lanes" data-lanes></div>
          <div class="best" data-best aria-hidden="true"><span class="best__label">Best time to meet</span></div>
          <div class="now" data-now role="slider" tabindex="0" aria-label="Time to check" aria-valuemin="0" aria-valuemax="24">
            <span class="now__line"></span>
            <span class="now__handle"><span class="now__grip"></span></span>
          </div>
        </div>
      </div>

      <footer class="foot">
        <p class="foot__hint" data-hint>Drag the line to find an hour that works for everyone</p>
        <button class="foot__btn" type="button" data-schedule disabled>
          <svg class="foot__icon foot__icon--cal" viewBox="0 0 20 20" aria-hidden="true"><rect x="3.5" y="4.5" width="13" height="12" rx="2.5"></rect><path d="M3.5 8.5h13M7 3v3M13 3v3"></path></svg>
          <svg class="foot__icon foot__icon--done" viewBox="0 0 20 20" aria-hidden="true"><path data-tick d="M5.4 10.4 8.5 13.4 14.8 6.9"></path></svg>
          <span class="foot__label" data-schedule-label>Schedule 30 min</span>
        </button>
      </footer>
    </section>

    <span class="pointer" data-pointer aria-hidden="true">
      <svg viewBox="0 0 24 24"><path d="M5 3.5 18.5 13l-6.2 1.2 3.6 6.4-2.6 1.4-3.6-6.4L5 19.6Z"></path></svg>
    </span>
  </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.

29 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 “Team time zones” 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 white background there is the card of Tandemly, a made-up app for remote teams: at the top the title Team hours and, on the right, your time in Lisbon in large figures. Below, five people in a column, each with initials in a coloured circle, name, city and local time with a small sun or moon drawn in line; beside each one a 24-hour band of your day, split into half hours: light by day, lilac in that person’s work hours, dark at night. A black vertical line with a handle runs across all the bands. A drawn pointer grabs it and drags it back and forth: the line follows softly, every clock rolls digit by digit to the new hour of its time zone, and the sun turns into a moon when evening comes somewhere. When the line enters the dashed window where everyone is at work, the window fills in and turns solid, «Best time to meet» appears above it, the Schedule 30 min button lights up in violet with a small bounce and the line below says everyone is around. The pointer presses the button: a check draws itself with «Invite sent», then everything goes back to the starting hour.

How it works

The people and the right window

The people live in one string: name, city and hours from you. The script tries every quarter hour of your day and keeps those where everyone is between WORK_FROM and WORK_TO in their own time zone: the first and last become the «Best time to meet» window, drawn over the rows with two CSS variables.

The 24-hour bands

Each band is made of 48 half hours. For each one the script works out that person’s local time: lilac if they are at work, dark at night, light at other times. That way a five-and-a-half-hour offset has its work hours shifted by half a cell.

The line that follows

The line is placed in percent from a CSS variable, --h, so it stays right at any window size. Finger, mouse or arrow keys set a target hour and a gsap.quickTo follows it on a soft curve; on release the target snaps to the quarter hour.

Reel clocks

Each clock is four reels of digits from 0 to 9 plus the colon. When the quarter hour changes, only the reels whose digit changes turn, with back.out, from the last digit to the first, twenty milliseconds apart.

Sun, moon and button

Sun and moon are two stacked SVGs: when the local time passes 19:00 or 6:30, one leaves spinning and shrinking and the other comes in with a bounce. The button only turns on if the whole meeting fits in the right window, and when pressed the check draws itself with stroke-dashoffset.

Values to change

NameFileDefaultWhat it changes
TEAMscript.js'Ines Calvo,Lisbon,0|Theo Brandt,Berlin,1|Lucas Prado,São Paulo,-3|Maya Okoro,New York,-4|Priya Nair,Bangalore,5.5'The people: name, city and hours from you, separated by |. The first one is you.
START_HOURscript.js9The hour the line starts at, in your time zone.
WORK_FROMscript.js8From what hour a person is at work, in their own time zone.
WORK_TOscript.js20Until what hour they are at work, in their own time zone.
MEETINGscript.js0.5How long the meeting lasts, in hours.
FOLLOWscript.js0.35How soft the line following the finger is, in seconds.
ACCENTscript.js'#4f46e5'The colour of the right window and of the lit button.
LOOP_PAUSEscript.js1.8The seconds of pause before the loop starts again.

Try them in the Playground

When to use it

For the page of an app for remote teams, a meeting scheduler or a shared calendar: it shows in a single gesture the problem it solves, finding the right hour across distant cities.

On phones

The same animation with adapted sizes: the city hides and initials, name and time stay, the bands get narrower and the button moves below, as wide as the card; the line is dragged with the finger.

With reduced motion

No pointer, no rolling reels or bounces: the line already sits in the right window, the clocks show the time and the card fades in. When dragging, the digits change at once.

Pitfalls

  • The line is placed in percent from a CSS variable: if it were moved in pixels computed once, resizing the window would leave it on the wrong hour.
  • The clocks only update when the quarter hour changes, not on every frame of the drag: otherwise dozens of tweens per second would start on the same reels.
  • A half-hour offset (Bangalore, +5.5) falls in the middle of the hourly cells: that is why the bands are made of half hours.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 25 October 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