Skip to content
animorio
IT
Back to the library

Festival schedule

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

The lineup card of a festival: four acts with their times and a clock running through the evening. Whoever is on stage opens up: the name widens and gains weight on the variable font’s axes, a thin line fills with the set, three bars move with the music and the minutes left go down. Those who have played fade, the next one counts the minutes. Tapping an act takes the clock to its start.

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 schedule" 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>Tonight’s lineup with the running clock and the act on stage that grows</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 lineup card of a festival app: four acts with their times and a clock that runs through the evening; the
         act on stage opens, its name grows wider and heavier, a thin line fills with the set and three bars move with
         the music; the acts already played fade, the next one counts the minutes; tapping an act takes the clock to
         its start -->
    <section class="card" data-card aria-label="Tonight on the main stage">
      <span class="card__beam" aria-hidden="true"></span>
      <header class="head">
        <div>
          <p class="head__place">Main stage, Saturday</p>
          <h1 class="head__title">Tonight</h1>
        </div>
        <p class="clock" aria-hidden="true"><span data-hh>19</span><i>:</i><span data-mm>52</span></p>
      </header>

      <ol class="acts">
        <li class="act" data-act data-from="1200" data-to="1255">
          <button class="act__row" type="button"><span class="act__time">20:00</span><span class="act__name"><span>Marlow Tide</span></span><span class="act__state"><span data-state></span></span></button>
          <div class="act__more" data-more><div class="act__in"><span class="eq" aria-hidden="true"><i></i><i></i><i></i></span><span class="act__what">Opening set</span><span class="bar"><span data-bar></span></span><span class="act__left" data-left></span></div></div>
        </li>
        <li class="act" data-act data-from="1275" data-to="1345">
          <button class="act__row" type="button"><span class="act__time">21:15</span><span class="act__name"><span>Neon Orchard</span></span><span class="act__state"><span data-state></span></span></button>
          <div class="act__more" data-more><div class="act__in"><span class="eq" aria-hidden="true"><i></i><i></i><i></i></span><span class="act__what">Live band</span><span class="bar"><span data-bar></span></span><span class="act__left" data-left></span></div></div>
        </li>
        <li class="act" data-act data-from="1365" data-to="1450">
          <button class="act__row" type="button"><span class="act__time">22:45</span><span class="act__name"><span>Velvet Static</span></span><span class="act__state"><span data-state></span></span></button>
          <div class="act__more" data-more><div class="act__in"><span class="eq" aria-hidden="true"><i></i><i></i><i></i></span><span class="act__what">Headliner</span><span class="bar"><span data-bar></span></span><span class="act__left" data-left></span></div></div>
        </li>
        <li class="act" data-act data-from="1465" data-to="1560">
          <button class="act__row" type="button"><span class="act__time">00:25</span><span class="act__name"><span>Sola Ray</span></span><span class="act__state"><span data-state></span></span></button>
          <div class="act__more" data-more><div class="act__in"><span class="eq" aria-hidden="true"><i></i><i></i><i></i></span><span class="act__what">DJ set</span><span class="bar"><span data-bar></span></span><span class="act__left" data-left></span></div></div>
        </li>
      </ol>
    </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.

28 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 schedule” 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

In the middle, on black, a dark card with a pink and orange stage light in the corner. At the head ‘Tonight’ and a running clock: it starts at 19:52. Below, four rows: the time, the act’s name and on the right a small line. Before the start the first row is already open and counting: ‘In 8 min’, ‘In 7 min’. At 20:00 the line rolls to ‘On stage’ and turns pink, the name widens, gains weight and grows with a small bounce, and below appear three bars moving with the music, the kind of set, a thin line filling from pink to orange and the minutes left. When it ends, the row closes, the name goes back narrow and light, the row fades and says ‘Played’; the next row opens, counting the minutes to its start. Rows further away show how long the set is. Hovering a row lightens its background; tapping it makes the clock run to its start and the lineup follows. Left alone, the evening runs, halfway through a pointer asks for the last act, and at the end of the night the clock goes back and starts again.

How it works

Everything is read from the clock

There is a single number, the minutes since midnight, advancing on GSAP’s ticker by SPEED minutes a second. paint compares it with the start and end of each act (data-from and data-to) and decides: played, on stage, coming.

The name on the font’s axes

The row on stage takes the is-live class: in the CSS the name goes from weight 560 to 760 and from width 100% to 120%, on a curve that slightly overshoots; the scale (1.22) sits on the same span with its origin on the left, so the row does not reflow.

The row that opens

Under each row there is a block zero tall with overflow hidden: GSAP takes to 34 pixels the one of the act on stage (or the next one, if nobody is playing) and to zero the others. One is always open, so the card does not change height.

The line, the minutes, the bars

The line is an element scaled horizontally with the fraction of the set gone by; the minutes left are rewritten at every step. The three bars scale vertically with two multiplied sines, different for each bar: they seem to follow the music.

Tapping an act

jump stops the clock, takes it with a tween to that act’s start and lets it run again: the whole lineup follows because it reads only that number.

Values to change

NameFileDefaultWhat it changes
STARTscript.js19:52The time the evening starts from.
SPEEDscript.js22How many minutes of the evening pass in a second.
OPENscript.js0.7How long the spring of the opening row lasts, in seconds.
ACCENTscript.js#ff4f8bThe colour of whoever is on stage.
WARMscript.js#ffb347The second colour of the line and the light.
BEATscript.js1How much the three music bars move (0 = still).
LOOPscript.jstrueLeft alone, the evening runs and starts again.

Try them in the Playground

When to use it

For the app or site of a festival, a live music venue, a conference or a film season: the card that says who is on now and who comes next. On a real site the clock is the phone’s and SPEED is not needed.

On phones

The same card, as wide as the screen: on narrow screens the name on stage grows a little less and the open row starts from the left edge, so the line and the minutes fit.

With reduced motion

The clock does not run: the card is shown still halfway through the second set, with the name already wide, the line already filled for its part and the bars still. Tapping an act takes the lineup straight to its start.

Pitfalls

  • The ‘In 7 min’ count changes several times a second: if every change rolled the line, nothing could be read. It rolls only when the kind of line changes.
  • Times after midnight must be kept beyond 1440 minutes (00:25 is 1465): only the clock at the top takes the remainder by 24 hours.
  • font-stretch and font-weight animate in CSS only with a variable font that has those axes: with a normal font the name snaps.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.6 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 animations