
Speeding marquee
Scroll, Text, Hover
The invitation to a private dinner with its countdown, as elegant as a printed card: thin, wide digits that change places quietly, a gold thread below that the seconds stretch once a minute, and a button to reply at the bottom.
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>
<!--
"Private dinner 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>Countdown to a private dinner with the thin digits that change places and the thread of the seconds</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 invitation to a private dinner with its countdown: thin, wide digits that slide quietly into place, a
gold thread under them that is spun once a minute by the seconds, and a reply button at the bottom -->
<section class="inv" data-inv aria-label="Invitation">
<p class="inv__kicker">You are invited</p>
<h1 class="inv__title">Dinner for Ada’s fortieth</h1>
<p class="inv__when">Saturday 12 December, 8 pm<i>Villa Sorgente, the long table</i></p>
<div class="inv__count" data-count role="timer" aria-live="off"></div>
<div class="inv__thread" aria-hidden="true"><span data-thread></span></div>
<footer class="inv__foot">
<span class="inv__by"><span data-by>Kindly reply by 28 November</span></span>
<button class="inv__go" type="button" data-go aria-pressed="false">
<svg viewBox="0 0 20 20" aria-hidden="true"><path data-tick pathLength="1" d="M4.500 10.400 8.300 14 15.500 6.200"></path></svg>
<span class="inv__go-text"><span data-gotext>I’ll be there</span></span>
</button>
</footer>
<p class="sr" data-live aria-live="polite"></p>
</section>
<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.
19 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 “Private dinner countdown” from Animorio and fit it into my siteGSAP’s ticker adds up the real seconds gone by; from those left a single function works out the four units and the thread’s length. The digits are rewritten only when the whole second changes, and only the ones that differ.
Each digit sits in a box with hidden overflow: the old one leaves at the top and fades with power2.in, the new one comes from below with power3.out in SLIDE seconds. No bounces: it is a card, not a scoreboard.
The digits’ font-weight is one CSS variable per unit, animated from 260 to HEAVY in half a second: on Mona Sans’s variable axis the number gets heavier without changing the width of its box.
| Name | File | Default | What it changes |
|---|---|---|---|
DAYS | script.js | 25 | The days left to the dinner when the page opens. |
HOURS | script.js | 6 | The hours left. |
MINUTES | script.js | 14 | The minutes left. |
SECONDS | script.js | 4 | The seconds left (few: so the minute is soon seen changing). |
SLIDE | script.js | 0.6 | How many seconds a digit takes to change places with the new one. |
HEAVY | script.js | 480 | The font weight of the unit under the pointer (260 at rest). |
ACCENT | script.js | #b08a3e | The colour of the thread and the small texts. |
LOOP | script.js | true | Left alone, a pointer rests on the units and replies to the invitation. |
On the page of a private event: a dinner, a birthday, an anniversary, a wedding, an evening for a few. On a real site the date is a single line and the count is worked out from it.
The same card, as wide as the screen; title and digits scale with the width (clamp) and in short windows the line with the place hides.
The count still runs (it is the information) but the digits change without sliding, the weight changes at once and the reply arrives without rolling.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.9 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.