Skip to content
animorio
IT
Back to the library

Festival countdown

Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 9.3 KBGSAP 28 KBFreeDownload the zip

The opening of the page of a made-up river festival, Northlight 2027, in the premium style of Dribbble shots: the top bar, the dates, the title and the countdown to the doors in split-flap tiles, days, hours, minutes and seconds. Every digit that changes falls like on an airport board, bounces back a few degrees and settles, and when the hour turns the tiles fall in a cascade from right to left. Each group loses weight as its own time drains: the seconds grow thin towards zero and come back heavy on a spring when the minute turns. Below runs the tape of the seconds, the Get tickets button catches the light and the row of the tickets left goes down as people buy.

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>
<!--
  "Festival 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>Northlight 2027, doors open in</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 opening of the page of a made-up river festival, Northlight 2027: the top bar, the dates, and the countdown
         to the doors in split-flap tiles. Every digit that changes folds down like an airport board, and each group
         loses weight as its own time drains: the seconds get lighter towards zero, then the minute flips and they are
         heavy again. Under the clock a tape of the seconds slides by; Get tickets catches the light and the row of the
         tickets left counts down as people buy -->
    <section class="page" data-page aria-label="Northlight 2027">
      <span class="page__glow" aria-hidden="true"></span>
      <span class="page__grain" aria-hidden="true"></span>

      <header class="bar">
        <p class="bar__brand">
          <svg class="bar__mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.6 21.4 12 12 21.4 2.6 12Z"></path><path class="bar__cut" d="M7.2 12h9.6"></path></svg>
          <span>Northlight</span>
        </p>
        <nav class="bar__nav" aria-label="Festival">
          <a href="#" class="is-on">Festival</a>
          <a href="#">Line-up</a>
          <a href="#" class="bar__far">Venue</a>
        </nav>
        <a href="#" class="bar__sign">Sign in</a>
      </header>

      <div class="hero">
        <p class="hero__when">
          <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2.2" y="3.2" width="11.6" height="10.6" rx="2.6"></rect><path d="M2.2 6.6h11.6M5.4 1.8v2.6M10.6 1.8v2.6"></path></svg>
          <span>12 to 14 June 2027</span>
          <span class="hero__sep">·</span>
          <span>Lisbon, Doca de Alcântara</span>
        </p>
        <h1 class="hero__title">Three nights<br>by the river.</h1>
        <p class="hero__lead">Doors open in</p>
      </div>

      <div class="clock" data-clock role="timer" aria-live="off">
        <div class="group" data-group="d"><div class="group__tiles"></div><p class="group__lab">Days</p></div>
        <span class="colon" aria-hidden="true"></span>
        <div class="group" data-group="h"><div class="group__tiles"></div><p class="group__lab">Hours</p></div>
        <span class="colon" aria-hidden="true"></span>
        <div class="group" data-group="m"><div class="group__tiles"></div><p class="group__lab">Minutes</p></div>
        <span class="colon" aria-hidden="true"></span>
        <div class="group" data-group="s"><div class="group__tiles"></div><p class="group__lab">Seconds</p></div>
      </div>

      <div class="tape" aria-hidden="true">
        <div class="tape__run" data-tape></div>
        <span class="tape__mark"></span>
      </div>

      <div class="foot">
        <button type="button" class="buy" data-buy data-autoclic aria-pressed="false">
          <span class="buy__body">
            <span class="buy__light" aria-hidden="true"></span>
            <span class="buy__sweep" aria-hidden="true"></span>
            <span class="buy__label"><span class="buy__idle">Get tickets</span><span class="buy__done">2 tickets held</span></span>
            <svg class="buy__ico" viewBox="0 0 16 16" aria-hidden="true">
              <path class="buy__arrow" d="M3.4 8h8.4M8.6 4.6 12 8l-3.4 3.4"></path>
              <path class="buy__tick" d="M3.4 8.4 6.5 11.3 12.6 4.8" pathLength="1" stroke-dasharray="1 1" stroke-dashoffset="1"></path>
            </svg>
          </span>
        </button>
        <div class="left">
          <p class="left__top">
            <span class="left__tier">Weekend pass, tier two</span>
            <span class="left__n"><span class="left__roll" data-left>312</span>&nbsp;left</span>
          </p>
          <span class="left__bar"><span class="left__fill" data-fill></span></span>
          <p class="left__price">From €189 <span class="left__was">€219</span></p>
        </div>
      </div>
    </section>
    <p class="sr" data-live aria-live="polite"></p>

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

40 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 “Festival 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 an almost black ground sits the opening of the page of Northlight 2027, a made-up festival by the river in Lisbon: a dark surface with fine grain, a one-pixel edge catching the light and an orange glow at the top right. At the top is the page bar: the orange diamond mark, Northlight, the links Festival, Line-up and Venue and the Sign in pill. Below are the dates, 12 to 14 June 2027 · Lisbon, Doca de Alcântara, the title Three nights by the river. and the line Doors open in. Then the countdown in split-flap tiles, with the dark hinge across the middle and the two pins on the sides: three for the days, two for the hours, the minutes and the seconds, with their labels below. Every digit that changes is a flap that falls: the top half folds forward around the hinge catching a highlight, the shadow falls over the old digit, the flap lands, bounces back up a few degrees and stops, and the tile drops one pixel and comes back. When several digits change together the flaps fall in a cascade from right to left, and at the start the page begins a few seconds before the hour turns, so you see 06:00:00 become 05:59:59. Each group has a weight that follows its own time: the seconds grow thin towards zero and when the minute turns they come back heavy on a small spring, the minutes and hours do the same more slowly. Below runs the tape of the seconds with its ticks and numbers, one step every second with the same curve as the flaps, under a still orange mark. At the bottom is the orange Get tickets button with a soft light that follows the pointer and a shine that crosses it (it also passes by itself now and then), and beside it the Weekend pass, tier two row with the number of tickets left rolling down and the bar shrinking on a spring when somebody buys. Pressed, the button squeezes, the label slides up into 2 tickets held, the arrow goes and a tick draws itself, and the tickets left drop by two. Left alone, a drawn pointer moves over the button, presses it and after a while the tickets are released again.

How it works

One flap, four pieces

Each tile has two still halves and a flap: the top half already shows the new digit, the bottom one still the old, the flap carries the top half of the old one on its front and, turned 180 degrees with hidden backface-visibility, the bottom half of the new one on its back. GSAP takes it from rotationX 0 to -180 around its lower edge with power3.in, then two small bounces; as soon as it lands the still bottom half takes the new digit and the flap hides.

Weight that follows time

Each group has a CSS variable --w used as the font-weight of its digits: the maximum weight times the share of time left (seconds out of 59, minutes out of 59, hours out of 23). GSAP eases it down at every tick and, when the value goes back up, makes it heavy again with a back.out once the flaps have fallen.

Time from the ticker

The count does not use setInterval: every frame of gsap.ticker works out the seconds gone, and when the whole second changes it compares the new digits with the old ones and drops only those that differ, from right to left with a delay per tile. The same frame moves the seconds tape with the same curve, measured in pixels and measured again on resize.

Values to change

NameFileDefaultWhat it changes
FLIPscript.js0.42How long a flap takes to fall, in seconds.
BOUNCEscript.js12How many degrees the flap bounces back when it lands (0 for none).
CASCADEscript.js0.07The delay between one tile and the next when several digits change together, in seconds.
W_MAXscript.js820The weight of a group when its time is full.
W_MINscript.js260The weight of a group when its time has drained to zero.
START_SECscript.js7How many seconds before the hour turns the clock starts, so the big cascade is seen soon.
SALEscript.js6.5Roughly every how many seconds somebody buys a ticket.
LOOPscript.jstrueLeft alone, a pointer makes Get tickets catch the light and holds two tickets.
--accentstyle.css#ff7a2fThe orange of the mark, the button, the tape marker and the ticket bar.
--tilestyle.css#222227The graphite of the split-flap tiles.
--bgstyle.css#08080aThe black of the ground.

Try them in the Playground

When to use it

For the opening of the page of a festival, a concert, a conference or a launch: whoever lands sees at once how long is left, feels time passing in the weight of the digits and has the ticket button and how many are left right in front of them.

On phones

The same animation with adapted measures: the whole page is sized in em and the em follows width and height together, so the nine tiles and the button fit the box; Venue leaves the bar under 420 pixels and a tap on the button does the same as a click.

With reduced motion

No movement: the digits change in place without flaps, the weight changes at once, the seconds tape steps without sliding, no shine on the button, and the 2 tickets held label and the tickets left simply change.

Pitfalls

  • The back face of the flap is already turned 180 degrees and shows the bottom half of the new digit: with backface-visibility visible you would see the old digit upside down while the flap falls.
  • If the second ticks while a flap is still in the air, it is taken straight to its end (progress(1)) before another one starts, otherwise the bottom half keeps the wrong digit.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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