
Speeding marquee
Scroll, Text, Hover
The services menu of Lantern Decks, a made-up presentation studio, in a minimal style: the heading comes in letter by letter from the right inside its own mask, and over a row each word rolls one after the other, the indigo copy climbing from below while the ink word leaves upwards and fades, on a long curve that goes a pixel too far and settles. Leaving the row rolls the ink back in the same way; a roll never restarts before it is 15% through, so a quick pass never stutters.
Rebuilt from scratch studying laboiteaslides.fr by Sparkk, Evan Fasquelle: 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>
<!--
"Rolling services menu" 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>Services · Lantern Decks</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>
<!-- The services menu of Lantern Decks, a made-up presentation studio in Lisbon. The heading comes in letter by letter
from the right inside its own mask, the small slide icon first. Over a service, its words roll one after the other:
an indigo copy climbs from below while the ink word leaves upwards and fades, on a long soft curve with a pixel of
overshoot; leaving the row rolls the ink word back in. A roll never restarts before it is 15% through, so a quick
pass does not stutter. The other rows step back, the count turns indigo and an arrow slides in. -->
<main class="palco" data-palco>
<header class="testa">
<p class="marchio">Lantern Decks</p>
<p class="sotto">Presentation studio, Lisbon</p>
</header>
<section class="servizi" aria-labelledby="titolo">
<h1 class="titolo" id="titolo" data-titolo>
<span class="titolo__icona" data-icona aria-hidden="true">
<svg viewBox="0 0 28 20"><rect x="1" y="1" width="26" height="16" rx="2.5" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M6 6.5h9M6 10h6" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/><rect x="18" y="8" width="5" height="5" rx="1" fill="currentColor"/></svg>
</span>
<span class="titolo__testo" data-testo>What we make</span>
</h1>
<ul class="elenco" data-elenco>
<li class="voce" data-voce tabindex="0"><span class="voce__nome" data-nome>Pitch decks</span><span class="voce__conto"><span data-conto>48 decks</span><svg class="voce__freccia" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11M10.5 5.5 15 10l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg></span><i class="voce__riga" aria-hidden="true"></i></li>
<li class="voce" data-voce tabindex="0"><span class="voce__nome" data-nome>Conference keynotes</span><span class="voce__conto"><span data-conto>31 talks</span><svg class="voce__freccia" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11M10.5 5.5 15 10l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg></span><i class="voce__riga" aria-hidden="true"></i></li>
<li class="voce" data-voce tabindex="0"><span class="voce__nome" data-nome>Investor updates</span><span class="voce__conto"><span data-conto>64 updates</span><svg class="voce__freccia" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11M10.5 5.5 15 10l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg></span><i class="voce__riga" aria-hidden="true"></i></li>
<li class="voce" data-voce tabindex="0"><span class="voce__nome" data-nome>Slide training</span><span class="voce__conto"><span data-conto>22 teams</span><svg class="voce__freccia" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11M10.5 5.5 15 10l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg></span><i class="voce__riga" aria-hidden="true"></i></li>
<li class="voce" data-voce tabindex="0"><span class="voce__nome" data-nome>Brand templates</span><span class="voce__conto"><span data-conto>17 kits</span><svg class="voce__freccia" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11M10.5 5.5 15 10l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg></span><i class="voce__riga" aria-hidden="true"></i></li>
</ul>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/CustomEase.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.
25 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Rolling services menu” from Animorio and fit it into my siteEach row name is split into words; each word is a span with hidden overflow holding the ink word and, on top, the same word in indigo, absolutely placed and moved to yPercent 100, just below the edge of the mask.
On hover a timeline takes the copy from yPercent 100 to 0 and the ink word from 0 to −100 with its opacity to 0, both in 2.5 seconds, 0.09 seconds apart from one word to the next. Leaving does the same the other way, in 0.4 of the time so a pointer crossing the menu leaves no trail: the ink comes in, the indigo goes out.
The curve is a CustomEase with the points C .084,.61 .088,.874 .184,.944 .283,1.016 .374,1 1,1: it reaches 94% in less than a fifth of the time, goes 1.6% past the end (about a pixel) and spends the rest settling. The gesture feels ready at once but ends slowly.
Each row remembers what it shows and what the pointer wants. A new roll starts only once the current one is 15% through; if the pointer changes its mind earlier, the timeline’s onUpdate waits for that point and then rolls towards the wanted state, so a fast pass always ends in the right state.
«What we make» is split into letters, each in its own mask: they come in from xPercent 100 with opacity from 0, one every 0.05 seconds, in 1.7 seconds on the same curve; the slide icon arrives first with a small turn. The rows rise from yPercent 130 with a scale from 1.05 and the hairlines stretch from scaleX 0 in 2.3 seconds.
Along with the roll an indigo line stretches under the row (and retreats to the right on leaving), the count takes the accent colour and the SVG arrow comes in from −8 pixels; the other rows fade to 0.32. The events are pointerover and mouseover on the stage, so the row reacts wherever the pointer is on it.
| Name | File | Default | What it changes |
|---|---|---|---|
ROLL | script.js | 2.5 | How many seconds a row takes to roll. |
WORD_STAGGER | script.js | 0.09 | The delay between two words of the same row, in seconds. |
LOCK | script.js | 0.15 | The share of a roll that must play before a new one can start. |
LETTER_STAGGER | script.js | 0.05 | The delay between two letters of the heading, in seconds. |
TITLE_DURATION | script.js | 1.7 | How many seconds each letter of the heading takes to come in. |
BACK | script.js | 0.4 | How long the roll back to ink lasts, as a share of the roll: shorter, so a passing pointer leaves no trail. |
DIM | script.js | 0.32 | The opacity of the other rows while one is under the pointer. |
ACCENT | script.js | #4b3bff | The colour of the rolled words, the icon, the arrow and the line. |
For the services menu of an agency, a studio or a freelancer, the chapter list of an editorial site or a full-page navigation: a few large items, where hovering should feel crafted without getting in the way.
Names are sized on the smaller of 7.6vw and 6.2vh, so the five rows fit the box even when it is short. Without a pointer a row rolls on tap and stays lit until another row or the empty space is tapped.
No movement: the heading and the rows fade in, ink and indigo swap with a 0.35 second fade, the arrow appears without sliding and pressing does not sink the row.
GSAP 3.15.0, CustomEase 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.4 KB; the libraries: GSAP + CustomEase 31 KB.
Tested on 2 December 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.
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.