
Speeding marquee
Scroll, Text, Hover
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.
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> 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>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
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 siteEach 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
FLIP | script.js | 0.42 | How long a flap takes to fall, in seconds. |
BOUNCE | script.js | 12 | How many degrees the flap bounces back when it lands (0 for none). |
CASCADE | script.js | 0.07 | The delay between one tile and the next when several digits change together, in seconds. |
W_MAX | script.js | 820 | The weight of a group when its time is full. |
W_MIN | script.js | 260 | The weight of a group when its time has drained to zero. |
START_SEC | script.js | 7 | How many seconds before the hour turns the clock starts, so the big cascade is seen soon. |
SALE | script.js | 6.5 | Roughly every how many seconds somebody buys a ticket. |
LOOP | script.js | true | Left alone, a pointer makes Get tickets catch the light and holds two tickets. |
--accent | style.css | #ff7a2f | The orange of the mark, the button, the tape marker and the ticket bar. |
--tile | style.css | #222227 | The graphite of the split-flap tiles. |
--bg | style.css | #08080a | The black of the ground. |
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.
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.
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.
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.
Tested on 16 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.