Skip to content
animorio
IT
Back to the library

Projects with a ring

Scroll, Images, TextGSAPMediumCompressed weight: Demo 4.3 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

Scroll inside the preview

A pinned scene where projects go by one at a time: the current one big in the centre, its neighbours small above and below, and a ring filling towards the next.

Rebuilt from scratch studying meermohsin.me by Meer Mohsin: 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>
<!--
  "Projects with a ring" 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>Progetti in fila con l'anello</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>
    <section class="apertura">
      <p class="sopra">Lavori</p>
      <p class="grande">Scorri: i progetti passano in fila, uno alla volta, e l'anello conta quanto manca al prossimo.</p>
    </section>

    <section class="corsa">
      <!-- due fondi sfocati che si danno il cambio: il progetto corrente, grande e fuori fuoco -->
      <div class="fondo" aria-hidden="true"><div class="fondo__strato"></div><div class="fondo__strato"></div></div>

      <div class="testi" aria-hidden="true">
        <p class="sopra">Lavori scelti</p>
        <h2 class="nome"></h2>
        <p class="descrizione"></p>
      </div>

      <ol class="fila">
        <li class="carta q1" data-nome="Frantoio Alto" data-testo="Il sito di un frantoio di collina: la raccolta raccontata settimana per settimana."><span class="sr">Frantoio Alto: Il sito di un frantoio di collina: la raccolta raccontata settimana per settimana.</span></li>
        <li class="carta q2" data-nome="Casa Rota" data-testo="Un albergo diffuso in un borgo di pietra, prenotazioni comprese."><span class="sr">Casa Rota: Un albergo diffuso in un borgo di pietra, prenotazioni comprese.</span></li>
        <li class="carta q3" data-nome="Cantina Selva" data-testo="Vini naturali e una mappa delle vigne che si esplora scorrendo."><span class="sr">Cantina Selva: Vini naturali e una mappa delle vigne che si esplora scorrendo.</span></li>
        <li class="carta q4" data-nome="Atlante Verde" data-testo="Un erbario digitale con trecento piante disegnate a mano."><span class="sr">Atlante Verde: Un erbario digitale con trecento piante disegnate a mano.</span></li>
        <li class="carta q5" data-nome="Forno Aurora" data-testo="Il forno del quartiere: ordini la sera, ritiri il pane al mattino."><span class="sr">Forno Aurora: Il forno del quartiere: ordini la sera, ritiri il pane al mattino.</span></li>
      </ol>

      <div class="anello" aria-hidden="true">
        <svg viewBox="0 0 80 80">
          <circle class="anello__base" cx="40" cy="40" r="35" />
          <circle class="anello__pieno" cx="40" cy="40" r="35" />
          <path class="anello__freccia" d="M40 29v20M32 42l8 8 8-8" />
        </svg>
      </div>
    </section>

    <section class="coda">
      <p class="grande">Tutti i progetti sono passati. Torna su per rivederli.</p>
    </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/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.

27 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 “Projects with a ring” 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 work section stops on screen. The current project sits in the centre, large; the previous one has gone up, small and faded, the next one waits below. As you scroll, with every new project the cards slide one place, the name and description are rewritten word by word, and behind everything the blurred background takes on the project's colours. At the bottom right a ring fills up as you approach the next project, and starts empty again when you get there.

How it works

One scene for many screens

ScrollTrigger pins the section for N screen heights (one per project). In onUpdate, progress times N gives a number like 2.4: the integer part is the current project, the decimal part is how far the next one is.

Every card's place

A posto(r) function says where a card sits at distance r from the current one: r = 0 centred and full, r = ±1 small and faded above or below, further away almost invisible. On change every card goes to its place with power3.out and overwrite, so fast changes do not pile up.

A ring with no numbers

An SVG circle with stroke-dasharray equal to the circumference (2π times 35); stroke-dashoffset follows the decimal part of the progress. It says how much is left without counting the projects.

Changing texts and background

Name and description are rewritten into spans, one word each, and rise staggered. The background is two heavily blurred layers taking turns: one lights up with the new project while the other fades.

Values to change

NameFileDefaultWhat it changes
SALTOscript.js0.36 (0.28 sul telefono)How far from the centre the neighbouring cards sit, as a fraction of the scene's height.
PICCOLEscript.js0.34The scale of the neighbouring cards.
DURATAscript.js0.7Seconds for each change: cards, words and background.
data-nome / data-testoindex.htmlcinque progettiName and description of every project, written on its card.

Try them in the Playground

When to use it

To show three to seven pieces of work calmly, one at a time, when each deserves its moment. With many projects the run gets long: a grid is better.

On phones

The text moves to the top and the cards below, wider; the gap between cards shrinks so they do not touch the text.

With reduced motion

The scene stays pinned but the changes are instant: no sliding, no rising words.

Pitfalls

  • Do not start an animation on every onUpdate: check that the project really changed, or you create dozens of tweens per second.
  • Use overwrite: true on the cards: when scrolling fast the project changes before the card arrives, and without overwriting the tweens fight each other.
  • Keep the progress below N with a margin (here N - 0.0001): at progress 1 the integer part would become N and you would look for a card that does not exist.
  • The blur filter on the background is expensive: put it on two still layers and animate only their opacity, never the blur.

Libraries

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

Compressed with gzip, the three demo files weigh 4.3 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