Skip to content
animorio
IT
Back to the library

Tour dates countdown

Hover, TextGSAPEasyCompressed weight: Demo 6.2 KBGSAP 28 KBFreeDownload the zip

A minimal hover animation: the list of a tour’s dates on warm white, one show per row. Under the pointer the date turns into the days still to go: its letters roll up out of their slot one after the other, the days roll in from below in orange, pass their line by a hair and settle, and the number ticks down to the real count like a countdown landing. The city takes weight and width on a spring, the ticket arrow slides in, the other dates step back. On a phone you tap the row.

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>
<!--
  "Tour dates countdown" 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>Tour dates with a countdown</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="scena" data-stage>
    <section class="tour" data-tour aria-label="Wren Halloway, Low Light Tour dates">
      <header class="testa" data-head>
        <span class="artista">Wren Halloway</span>
        <span class="giro">Low Light Tour</span>
      </header>
      <!-- the dates: the script writes one row per show; hovering a row turns its date into the days still to go -->
      <ul class="date" data-list></ul>
    </section>
    <p class="nota" data-note>Hover a date to see how long to go</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.

20 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 “Tour dates countdown” 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 empty warm white sits the list of a tour’s dates: at the top, small, the name of who is playing, ‘Wren Halloway’, and the name of the tour, ‘Low Light Tour’; below, five rows parted by thin hairlines that stretch in from the left one after the other. Each row has the date, the city and the ticket status: Lisbon, Antwerp, Bologna, Glasgow, Kraków; ‘Tickets’, ‘Few left’, ‘Sold out’. The dates are counted from today, so they are always ahead. When the pointer passes over a row the date turns into the time to go: the letters of ‘Nov 7’ roll up out of their slot one after the other, and from below, staggered, come those of ‘6 days’ in orange, passing their line by a hair and settling; meanwhile the number arrives from nine days higher and ticks down to the real count, like a countdown coming to rest. The city takes weight and width on the two axes of the variable typeface, on a spring, and moves a couple of pixels; the hairline above the row thickens for an instant, as if the row were picked up; next to the status a thin arrow slides in, which sold-out dates don’t have. The other rows step back to a third. Leave, and the days drop away and the date comes back from above. Pressing a row squeezes the date and the city a little and nudges the arrow forward. Left alone, the list opens one date after another and starts again.

How it works

Dates counted from today

Each date is written as days from today (Lisbon:6:Tickets); the script works out the real day with Intl.DateTimeFormat, so the list never expires and the day count is always right.

One slot, two lines

The date and the days sit on top of each other in a 1.2 em slot with overflow hidden. Every letter is a span: GSAP takes the date’s letters to yPercent -115 and the days’ from 115 to 0, 30 ms apart, with a back.out that passes the line by a hair.

The number ticking down

The number is a single letter: a tween takes a value from days plus COUNT_FROM down to days with power3.out and writes the rounded number every frame. Tabular figures keep the width still while it ticks.

The city on a spring

Each city has a number from 0 to 1 that chases its target on a spring (stiffness 260, damping from 32 to 12 depending on BOUNCE) and becomes font-variation-settings, weight and width together. The city column is free in the grid, so growing moves nothing.

The hand and the walk

With a mouse pointerenter opens the row, and leaving the list closes everything and restarts the walk a second and a half later; on a phone a tap opens the row and a second tap closes it. The walk on its own is a chain of gsap.delayedCall.

Values to change

NameFileDefaultWhat it changes
SHOWSscript.jsLisbon:6:Tickets, Antwerp:13:Few left, Bologna:19:Sold out, Glasgow:27:Tickets, Kraków:41:TicketsThe dates: city, days from today and status, separated by commas.
UNITscript.jsdaysThe word after the number.
COUNT_FROMscript.js9How many days higher the number starts before ticking down.
ROLL_TIMEscript.js0.5Seconds for a letter to roll into its slot.
STAGGERscript.js0.03Seconds between one letter and the next.
WEIGHTscript.js[400, 640]The weight of a city, at rest and under the pointer.
WIDTHscript.js[94, 110]The width of a city, at rest and under the pointer.
DIMscript.js0.38How visible the other dates stay.
BOUNCEscript.js0.5How far the city passes its weight before it settles.
HOLDscript.js1.9Seconds each date stays open when the list walks by itself.
SPEEDscript.js12 = twice as fast, 0.5 = half as fast.

Try them in the Playground

When to use it

For the dates page of a musician or a band, a theatre company, a festival, a comedian on tour, or for the list of a venue’s upcoming classes, talks and events: wherever readers care more about how long to go than about the date.

On phones

The same animation with adapted sizes: the list is as big as the box allows, in width and in height, and you open a date with a tap; a second tap closes it.

With reduced motion

No rolling letters and no springs: the date and the days swap in a fade, the number is already the right one, the city takes its weight in place and the arrow fades in.

Pitfalls

  • The slot needs overflow hidden and a height in em: the letters passing their line with back.out go over by a hair and must stay clipped.
  • The number ticking down changes digits (from 15 to 6): it needs tabular figures, or the word after it wobbles.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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