
Speeding marquee
Scroll, Text, Hover
A loading dock’s board: four bays, six hours, taken slots with the carriers’ names and free ones to book. Under the pointer a free slot shows its plus; tapped, it fills with amber and a truck backs into it, while the line of the hour moves on.
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>
<!--
"Loading dock slots" 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>Loading dock slots</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">
<!-- a loading dock's morning: four bays, six hourly slots. Free slots show a plus under the pointer and are booked
with a tap: the slot fills, a small truck backs in, the count of free slots drops. The line of "now" keeps moving -->
<section class="dk" data-dk aria-label="Loading dock schedule">
<header class="dk__head">
<span class="dk__title">Loading dock</span>
<span class="dk__free"><b data-free>0</b> free</span>
</header>
<div class="dk__board" data-board>
<span class="dk__now" data-now aria-hidden="true"><i data-clock></i></span>
</div>
<p class="dk__say" aria-live="polite"><span data-say>Pick a free slot</span></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.
18 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 “Loading dock slots” from Animorio and fit it into my siteThe board is a CSS grid: one column for the bay letters and six for the hours. Taken tiles span one or two columns with grid-column and span; free slots are real buttons.
The colour is a child of the slot: GSAP takes it from scale 0.4 to 1 with elastic.out over POP seconds, while the truck slides in from the right with power3.out and gives a nudge of a pixel and a half.
The time is a number growing on the ticker by SPEED minutes a second and becomes a CSS variable: the line is placed with calc() over the six columns only. Every minute, what has passed is checked again.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #ffb020 | The colour of your bookings and of the line of now. |
NOW | script.js | 9.6 | The time now, in hours and tenths (9.6 = 9:36), between 8 and 14. |
SPEED | script.js | 1.2 | How many minutes pass on the board in one second (0 = time stands still). |
POP | script.js | 0.55 | How many seconds a slot takes to fill. |
HOLD | script.js | 1.5 | On its own: how many seconds it stops after each booking. |
LOOP | script.js | true | Left alone, a pointer books two slots and gives one back. |
On the site or dashboard of software for warehouses, yards and haulage, where carriers book their unloading. The same grid works for meeting rooms, padel courts, charging points: rows of resources and columns of hours.
The same piece: slots are booked by tapping, rows shrink with the window’s height but stay at least 28 pixels tall, and long carrier names are cut with an ellipsis.
No springs, no truck backing in, no moving line: the tapped slot changes colour at once and the time stands still.
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 17 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.