Skip to content
animorio
IT
Back to the library

Rolling list drum

Scroll, TextGSAPEasyCompressed weight: Demo 2.7 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

Scroll inside the preview

A list rolling through a fixed band: the item in the middle is solid, the others fade, and a diamond turns a quarter at every item.

Rebuilt from scratch studying demo.clapat-templates.com by Clapat: 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 list drum" 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="it">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Tamburo di voci</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="corsa">
    <div class="palco">
      <div class="lato">
        <!-- il rombo gira di un quarto di giro a ogni voce -->
        <svg class="rombo" viewBox="0 0 32 32" aria-hidden="true">
          <path d="M2 16 16 2 16 9 9 16Z" fill="#ffc896" />
          <path d="M16 2 30 16 23 16 16 9Z" fill="#ffb27a" />
          <path d="M30 16 16 30 16 23 23 16Z" fill="#d9602a" />
          <path d="M16 30 2 16 9 16 16 23Z" fill="#ef7430" />
          <path d="M16 9 23 16 16 23 9 16Z" fill="#ff8a3d" />
          <path d="M16 2 30 16 16 30 2 16Z" fill="none" stroke="#07201f" stroke-width="1.7" stroke-linejoin="round" />
        </svg>
        <h1 class="titolo">Cosa facciamo</h1>
      </div>
      <!-- il tamburo: la lista scorre, la voce nella fascia centrale è piena, le altre sfumano -->
      <div class="tamburo">
        <ul class="voci">
          <li class="voce">Identità visiva</li>
          <li class="voce">Siti animati</li>
          <li class="voce">Fotografia</li>
          <li class="voce">Illustrazione</li>
          <li class="voce">Motion design</li>
          <li class="voce">Testi</li>
          <li class="voce">Negozi online</li>
          <li class="voce">Manutenzione</li>
        </ul>
      </div>
    </div>
  </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/ScrollTrigger.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.

16 values to change

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 list drum” 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

The scene holds still while you scroll. Inside, a list rises slowly as on a machine drum: the item crossing the central band is solid, those above and below dim with distance and vanish at the edges. Next to it, a diamond turns a quarter of a turn for each item.

How it works

A scene that holds still

The .corsa container is four screens tall; inside, .palco is sticky and one screen tall. No ScrollTrigger pin: with sticky the layout stays simple.

A rolling index

Scroll moves k from 0 to n - 1. The integer part is the item in the middle, the fraction tells how close the next one is.

The list moves

The item centres are measured; the script interpolates between the current and the next one and shifts the list until that point sits on the bright band.

Light by distance

Every item gets an opacity that drops with its distance from the centre, never below SPENTO. The CSS mask (mask-image with a gradient) handles the edges.

Values to change

NameFileDefaultWhat it changes
CENTROscript.js0.5Where the bright band sits. If you move it, move the mask stops in style.css too.
SPENTO / CADUTAscript.js0.14 / 0.85Minimum opacity and how quickly items dim as they move away.
GIROscript.js90Degrees of diamond rotation per item. Zero stops it.
.corsa heightstyle.css420vhThe scroll length.

Try them in the Playground

When to use it

For short lists meant to be read one item at a time: services, steps, principles. Beyond twelve items it becomes a long scroll.

On phones

The title and diamond move to the top, the list below; the font size adapts to the width.

With reduced motion

No fixed scene: the list is a normal list and every item is solid.

Pitfalls

  • Measure the centres after document.fonts.ready: with the fallback font the line heights differ.
  • Long items must not wrap (white-space: nowrap), or the centres stop being regular.
  • mask-image on Safari still wants the -webkit- prefix.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 2.7 KB; the libraries: GSAP + ScrollTrigger 45 KB.

Testing

Tested on 26 September 2026

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

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