
Speeding marquee
Scroll, Text, Hover
The offices card of Halden Row, a made-up executive search firm: a big clock with the real time in New York, London, Zurich and Singapore. Every 5 seconds the line slides up by one line in 0.65 s and the next city arrives; when the minute turns the digits roll like an odometer, one after the other, and settle one pixel too far. Over a city the clock goes there and waits. Below, the numbers of the firm roll in on the same reels. Premium minimal style.
Rebuilt from scratch studying aspensearch.com by Edoardo Lunardi, Elliott Mangham, Louis Saville: the idea is theirs; code, copy and images are ours. Read how it’s made
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>
<!--
"Office world clock" 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>The offices clock with the odometer digits</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the offices card of a made-up executive search firm, Halden Row. The real time of each office, one city every
five seconds: the whole line slides up by one line and the digits roll like an odometer when they change.
Over a city the clock goes there and waits. Below, the numbers of the firm roll in on the same reels -->
<section class="card" data-card aria-label="Halden Row offices">
<span class="card__rim" aria-hidden="true"></span>
<span class="card__shine" aria-hidden="true"></span>
<header class="card__head">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 22 22" aria-hidden="true">
<rect x="0.75" y="0.75" width="20.5" height="20.5" rx="6"/>
<path d="M7.4 6.2v9.6M14.6 6.2v9.6M7.4 11h7.2"/>
</svg>
<span class="brand__name">Halden Row</span>
</span>
<span class="tag">Executive search</span>
</header>
<div class="clock" data-clock>
<p class="clock__label">Local time in our offices</p>
<div class="clock__row">
<div class="clock__window" aria-hidden="true">
<div class="clock__reel" data-reel></div>
</div>
<svg class="dial" data-dial viewBox="0 0 100 100" aria-hidden="true">
<circle class="dial__face" cx="50" cy="50" r="47"/>
<g class="dial__ticks" data-ticks></g>
<line class="dial__hour" data-hour x1="50" y1="54" x2="50" y2="29"/>
<line class="dial__min" data-min x1="50" y1="56" x2="50" y2="15"/>
<line class="dial__sec" data-sec x1="50" y1="60" x2="50" y2="11"/>
<circle class="dial__hub" cx="50" cy="50" r="2.4"/>
</svg>
</div>
<div class="clock__sub" aria-hidden="true">
<span class="sub__slot" data-sub-name></span>
<span class="sub__slot sub__slot--right" data-sub-state></span>
</div>
<time class="sr" data-sr></time>
</div>
<div class="cities" data-cities role="list">
<span class="cities__pill" data-pill aria-hidden="true"><span class="cities__fill" data-fill></span></span>
</div>
<div class="stats" data-stats>
<div class="stat" data-stat data-value="640+">
<span class="stat__num" data-num aria-hidden="true"></span>
<span class="sr">640 plus</span>
<span class="stat__cap">Leaders placed since 2007</span>
</div>
<div class="stat" data-stat data-value="18+">
<span class="stat__num" data-num aria-hidden="true"></span>
<span class="sr">18 plus</span>
<span class="stat__cap">Years in the boardroom</span>
</div>
<div class="stat stat--accent" data-stat data-value="$2M-6M">
<span class="stat__num" data-num aria-hidden="true"></span>
<span class="sr">2 to 6 million dollars</span>
<span class="stat__cap">Recent package range</span>
</div>
</div>
</section>
<svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></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.
41 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 “Office world clock” from Animorio and fit it into my siteFor each city an Intl.DateTimeFormat("en-US", { timeZone, hour: "2-digit", minute: "2-digit", hour12: true }) and formatToParts give hours, minutes and AM/PM; a second format with timeZoneName: "shortOffset" gives «GMT-5», and a third the 24 hour time and the day, to say whether the office is open (9 to 18 on weekdays). Every half second it checks whether the minute has turned.
Each digit is a window one line tall with overflow: hidden and inside a column 0-9 0-9, twenty lines. To reach a digit the column goes to yPercent = -digit x 5; it always moves forward (from 9 to 0 it goes to the second 0 and then jumps back to the first unseen), in 0.65 s on cubic-bezier(.16, 1, .3, 1), and the digits that changed start 0.04 s apart.
Between the column and the window there is a second wrapper: a third of the way in it rises by one pixel (SETTLE) and then slowly comes back to zero, so the digit arrives, goes just past and settles. A gradient mask at the top and bottom brings the digits in and out softly.
The clock is a column with one line per office, plus a copy of the first at the end: every 5 s the column slides up by one line in 0.65 s on the same curve, and when it reaches the copy it jumps back to the top, so it always slides up. The time is kept by the orange line under the city, a 5 s tween that starts the change when it ends.
The white pill moves under the new city with a measured x and width, on the same curve, with a small elastic squash; the name under the clock leaves upwards in 0.55 s (cubic-bezier(.7, 0, .84, 0)) and the new one rises from below in 0.7 s (cubic-bezier(.23, 1, .32, 1)). Over a city the line stops and the clock goes there at once; on leaving it starts again from zero.
640+, 18+ and $2M-6M are made of the same digits: when they come into view (IntersectionObserver) each digit spins a full turn from zero in 1.2 s, 0.06 s apart. Under the pointer they spin again. The 1 px edge of the card is a radial gradient masked to a frame that follows the pointer; left alone, a GSAP timeline brings a fake pointer over the cities and a tile.
| Name | File | Default | What it changes |
|---|---|---|---|
CITIES | script.js | New York, London, Zurich, Singapore | The offices: name, code on the clock and IANA time zone (up to six). |
CITY_EVERY | script.js | 5 | Seconds each city stays on the clock (the site uses 5). |
SLIDE_TIME | script.js | 0.65 | Seconds the line takes to slide up to the next city (the site uses 0.65). |
CLOCK_ROLL | script.js | 0.65 | Seconds a clock digit takes to roll (the site uses 0.65). |
CLOCK_STAGGER | script.js | 0.04 | Seconds between one clock digit and the next (the site uses 0.04). |
STAT_ROLL | script.js | 1.2 | Seconds a digit of the numbers takes to roll (the site uses 1.2). |
STAT_STAGGER | script.js | 0.06 | Seconds between one digit of the numbers and the next (the site uses 0.06). |
SETTLE | script.js | 1 | Pixels a reel goes past its digit before it settles. |
HOUR12 | script.js | true | The 12 hour clock with AM and PM; off, 24 hours. |
LOOP | script.js | true | Left alone, the pointer visits the cities and the numbers, over and over. |
For the contact or offices page of a firm with several locations: a studio, an agency, a consulting or search firm, a team spread across time zones, the footer of an international site. The number reels also work on their own for the stats of an about page.
The same animation with adapted sizes: clock, cities and tiles are measured on width and height with clamp and min(vw, vh), the pill is measured again at every resize. A finger taps a city: the clock goes there and the cycle starts again from it; a tap on a tile spins the reels again.
No reels and no sliding lines: the digits are already in place, the city changes every 5 seconds with a fade, the card and the tiles fade in. No pointer on its own.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 12 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.