Skip to content
animorio
IT
Back to the library

The globe of covers

Scroll, 3D, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 3.8 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

Scroll inside the preview

As you scroll, the two words of the title open towards the edges and a spinning globe of covers grows between them, made with CSS 3D only.

Rebuilt from scratch studying bleibtgleich.dev by Maksym Bleibtgleich: 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>
<!--
  "The globe of covers" 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>Il globo di copertine</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">Archivio dello studio</p>
      <p class="grande">Scorri: il titolo si apre e in mezzo gira il globo dei lavori.</p>
    </section>

    <section class="corsa">
      <div class="palco">
        <h2 class="titolo" aria-label="Lavori scelti">
          <span class="parola parola--a" aria-hidden="true">Lavori</span>
          <span class="parola parola--b" aria-hidden="true">scelti</span>
        </h2>
        <!-- le copertine le mette lo script su una sfera (spirale di Fibonacci) -->
        <div class="globo" aria-hidden="true">
          <div class="globo__scala">
            <div class="sfera"></div>
          </div>
        </div>
        <a class="tutti" href="#">Tutti i lavori</a>
      </div>
    </section>

    <section class="coda">
      <p class="grande">Fine della corsa. Torna su e riguardalo.</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.

15 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 “The globe of covers” 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 title is two words close to the centre of the screen. As you scroll, the words move apart to the edges and a sphere made of covers grows in the space they leave: every cover faces outwards, the sphere spins on its own and scrolling spins it further. Covers sliding towards the edge fade out, so the globe has depth. At the end of the run the words close again, the globe recedes and the link to all the work appears.

How it works

Points on a sphere

The Fibonacci spiral spreads N points evenly: y goes from 1 to -1, the radius of the circle at that height is the square root of 1 - y², and the angle grows by the golden angle each time. No rows and no crowded poles.

Every cover faces out

One transform per cover is enough: rotateY(atan2(x, z)) rotateX(asin(y)) translateZ(R). First it turns towards its point, then it moves out along the normal. With backface-visibility hidden the ones at the back disappear.

Depth by hand

CSS has no fog: on every frame the z of each cover after rotation is computed (two sines and two cosines) and used for opacity. The ones in front are solid, the ones edge-on fade out.

Words that open

The words move with x, not with the title's width: the distance to the edge is measured with offsetLeft and offsetWidth, which ignore transforms. With invalidateOnRefresh the measure is redone on every resize.

Values to change

NameFileDefaultWhat it changes
QUANTEscript.js44 (28 sul telefono)How many covers on the sphere. Above sixty CSS 3D starts to get heavy: switch to WebGL.
GIRIscript.js1.4How many turns the globe makes over the whole run, on top of the ones it makes by itself.
INCLINAZIONEscript.js14Degrees of tilt: the globe is seen slightly from above.
RAGGIOscript.js0.3The radius as a fraction of the screen's short side.

Try them in the Playground

When to use it

For the entrance of a work archive or a catalogue with many covers. The globe shows quantity and variety at a glance, not the single piece: a real list is needed next to it.

On phones

It works: fewer covers (28) and a slightly larger radius in proportion. The words still reach the edges on a narrow screen.

With reduced motion

No rotation and no run: words at the sides and a still globe, already visible.

Pitfalls

  • transform-style: preserve-3d must be set on every level between the perspective and the covers, otherwise the 3D flattens with no error.
  • Any overflow other than visible on a parent inside the 3D scene flattens everything: put the clipping on the stage, outside the globe.
  • Do not animate the title's width to open the words: move the words with x and measure with offsetLeft, which does not change while you transform them.
  • Compute opacity from a rotation you keep in JavaScript: reading transforms back from the DOM on every frame forces the browser to recalculate everything.

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 3.8 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