Skip to content
animorio
IT
Back to the library

Rolling services menu

Hover, TextGSAP, CSS onlyMediumCompressed weight: Demo 5.4 KBGSAP + CustomEase 31 KBFreeDownload the zip

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

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm white sheet, at the top «Lantern Decks» and «Presentation studio, Lisbon». In the middle a small slide-shaped icon and «What we make», coming in letter by letter from the right; below, five services in large narrow type, Pitch decks, Conference keynotes, Investor updates, Slide training and Brand templates, each with its count on the right (48 decks, 31 talks…) and a hairline drawing itself from the left. Over a row its words roll one after the other: the indigo copy climbs from below and takes the place of the ink word, which leaves upwards and fades; an indigo line stretches under the row, the count takes the colour and an arrow slides in, while the other rows step back. Leaving the row rolls it back to ink. Pressing it sinks the row by a breath and lets it go.

How it works

One mask per word

Each 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.

The roll

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 studio’s curve

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.

No bursts

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.

The heading letter by letter

«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.

The rest of the row

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.

Values to change

NameFileDefaultWhat it changes
ROLLscript.js2.5How many seconds a row takes to roll.
WORD_STAGGERscript.js0.09The delay between two words of the same row, in seconds.
LOCKscript.js0.15The share of a roll that must play before a new one can start.
LETTER_STAGGERscript.js0.05The delay between two letters of the heading, in seconds.
TITLE_DURATIONscript.js1.7How many seconds each letter of the heading takes to come in.
BACKscript.js0.4How long the roll back to ink lasts, as a share of the roll: shorter, so a passing pointer leaves no trail.
DIMscript.js0.32The opacity of the other rows while one is under the pointer.
ACCENTscript.js#4b3bffThe colour of the rolled words, the icon, the arrow and the line.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • GSAP does not read percentages back from CSS: the copy below the edge is placed with gsap.set(yPercent: 100), not with a translateY in the class, which would add up and hide it for good.
  • The word mask has a sliver of bottom padding (0.06em) cancelled by a negative margin: without it the descenders of «p» and «y» get clipped.
  • mouseenter does not bubble: to make the row react anywhere, even with the preview’s fake pointer sending events to the innermost element, pointerover and mouseover are listened to on the stage and the row is found with contains.
  • With the 15% lock a fast pass would leave the row lit: that is why the row keeps the wanted state and the timeline chases it from its onUpdate.
  • The count goes back to the grey read with getComputedStyle: a tween to an empty string does not bring back the class colour.

Libraries

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.

Testing

Tested on 2 December 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations