
Speeding marquee
Scroll, Text, Hover
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.
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>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
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 siteEach 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.
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 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
SHOWS | script.js | Lisbon:6:Tickets, Antwerp:13:Few left, Bologna:19:Sold out, Glasgow:27:Tickets, Kraków:41:Tickets | The dates: city, days from today and status, separated by commas. |
UNIT | script.js | days | The word after the number. |
COUNT_FROM | script.js | 9 | How many days higher the number starts before ticking down. |
ROLL_TIME | script.js | 0.5 | Seconds for a letter to roll into its slot. |
STAGGER | script.js | 0.03 | Seconds between one letter and the next. |
WEIGHT | script.js | [400, 640] | The weight of a city, at rest and under the pointer. |
WIDTH | script.js | [94, 110] | The width of a city, at rest and under the pointer. |
DIM | script.js | 0.38 | How visible the other dates stay. |
BOUNCE | script.js | 0.5 | How far the city passes its weight before it settles. |
HOLD | script.js | 1.9 | Seconds each date stays open when the list walks by itself. |
SPEED | script.js | 1 | 2 = twice as fast, 0.5 = half as fast. |
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.
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.
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.
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.
Tested on 1 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.