Skip to content
animorio
IT
Back to the library

The paper-slip menu

Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.1 KBGSAP 28 KBFreeDownload the zip

A ticket-shaped button that grows into the menu panel, with news clippings arriving one at a time. On closing, the clippings fall like dropped sheets of paper.

Rebuilt from scratch studying pensatori-irrazionali.com by Pensatori Irrazionali: 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 paper-slip 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="it">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Il menù dei foglietti</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>
  <div class="pagina" data-pagina>
    <header class="testata">
      <a class="marchio" href="#">Ritaglio</a>
    </header>
    <main class="apertura">
      <p class="nota" data-nota>Apri il menù in alto a destra: i ritagli arrivano uno alla volta e, quando lo chiudi, cadono come fogli.</p>
      <h1 class="apertura__titolo" data-titolo>Carta, schermi e tutto quello che ci sta in mezzo.</h1>
    </main>

    <div class="menu" data-menu>
      <div class="velo" data-velo></div>
      <!-- il bottone a biglietto: crescendo diventa il pannello -->
      <nav class="biglietto" data-biglietto aria-label="Menù">
        <button class="tasto" type="button" data-tasto data-autoclic aria-expanded="false" aria-controls="menu-voci" aria-label="Apri il menù">
          <svg viewBox="0 0 20 20" aria-hidden="true">
            <line class="tasto__linea tasto__linea--su" x1="4" y1="7.5" x2="16" y2="7.5"/>
            <line class="tasto__linea tasto__linea--giu" x1="4" y1="12.5" x2="16" y2="12.5"/>
          </svg>
        </button>
        <div class="dentro" id="menu-voci" data-dentro>
          <ul class="voci">
          <li class="voce" data-voce>
            <a href="#">Lavori<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
            <span class="voce__riga" data-riga></span>
          </li>
          <li class="voce" data-voce>
            <a href="#">Studio<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
            <span class="voce__riga" data-riga></span>
          </li>
          <li class="voce" data-voce>
            <a href="#">Ritagli<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
            <span class="voce__riga" data-riga></span>
          </li>
          <li class="voce" data-voce>
            <a href="#">Contatti<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
            <span class="voce__riga" data-riga></span>
          </li>
          </ul>
          <ul class="piede" data-piede>
            <li><a href="#">Instagram</a></li>
            <li><a href="#">Newsletter</a></li>
            <li><a href="#">LinkedIn</a></li>
          </ul>
        </div>
      </nav>
      <!-- i ritagli: arrivano dal pannello e, chiudendo, cadono -->
      <aside class="ritagli" data-ritagli aria-label="Ritagli">
      <a class="ritaglio" href="#" data-ritaglio>
        <span class="ritaglio__testi">
          <span class="ritaglio__fonte">Carta Stampata<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg><span class="ritaglio__data">20 set</span></span>
          <span class="ritaglio__testo">Un nostro manifesto per la stagione dei concerti è finito in copertina.</span>
          <span class="ritaglio__genere">Uscita</span>
        </span>
        <span class="ritaglio__tessera ritaglio__tessera--pomodoro" aria-hidden="true">C</span>
      </a>
      <a class="ritaglio" href="#" data-ritaglio>
        <span class="ritaglio__testi">
          <span class="ritaglio__fonte">Festival del Libro<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg><span class="ritaglio__data">7 giu</span></span>
          <span class="ritaglio__testo">Abbiamo disegnato i segnalibri e le insegne dell’edizione di quest’anno.</span>
          <span class="ritaglio__genere">Progetto</span>
        </span>
        <span class="ritaglio__tessera ritaglio__tessera--lime" aria-hidden="true">F</span>
      </a>
      <a class="ritaglio" href="#" data-ritaglio>
        <span class="ritaglio__testi">
          <span class="ritaglio__fonte">Radio di Quartiere<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg><span class="ritaglio__data">5 mag</span></span>
          <span class="ritaglio__testo">Mezz’ora di chiacchiere su caratteri, insegne dipinte e vetrine.</span>
          <span class="ritaglio__genere">Intervista</span>
        </span>
        <span class="ritaglio__tessera ritaglio__tessera--cielo" aria-hidden="true">R</span>
      </a>
      <a class="ritaglio" href="#" data-ritaglio>
        <span class="ritaglio__testi">
          <span class="ritaglio__fonte">Premio Pagina<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg><span class="ritaglio__data">20 apr</span></span>
          <span class="ritaglio__testo">Una menzione per il sito di una piccola libreria di provincia.</span>
          <span class="ritaglio__genere">Premio</span>
        </span>
        <span class="ritaglio__tessera ritaglio__tessera--rosa" aria-hidden="true">P</span>
      </a>
        <a class="tutti" href="#" data-tutti>Tutti i ritagli<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
      </aside>
    </div>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

48 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 paper-slip 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

At the top right sits a 44-pixel ticket-shaped button, its corners bitten by a quarter circle. Pressing it, the two lines turn into a cross and the ticket itself grows left and down until it becomes the menu panel, while the page darkens. The items drop into place one after the other, the rules under them draw out from the left, and beside them the clippings arrive: they come out of the panel a little askew and straighten up, and the last button arrives with a small bounce. On closing, the clippings do not vanish: they fall past the bottom of the page like dropped sheets, each turning around a different point and tilting in depth, while the panel goes back to being a ticket.

How it works

A ticket that widens

The button and the panel are the same element: a 44-pixel nav that GSAP takes to a third of the screen (420 at most) and to full height, with expo.inOut. The content already has the size of the open panel, so the growing ticket uncovers it instead of reflowing it every frame.

The bitten corners

The shape is a clip-path polygon with five points per corner on a 9-pixel quarter circle centred on the corner, written with calc(100% − …): the same rule works for the button, the panel, the clippings and the coloured tiles, at any size.

The arrival

The items drop from −2rem with a 0.05 stagger; the rules start from scaleX 0 with the origin on the left; the clippings arrive from 8rem to the right and −2rem above, with a random rotation between −7° and 7°, in power3.out; the last button arrives with elastic.out(1.2, 0.55).

The fall

Each clipping gets a random delay, the same for two tweens: one takes it past the bottom of the page with power2.in, faster and faster, and fades it out; the other, with sine.inOut, moves it sideways and turns it up to 58° around a random transform-origin, plus a tilt in depth of up to 40°. Two different curves on the same sheet make a swaying path.

Values to change

NameFileDefaultWhat it changes
LATOscript.js44The closed ticket, in pixels.
LARGOscript.js420The maximum width of the open panel.
CADUTAscript.js0.8The seconds of the clippings’ fall.
STORTOscript.js58How far a clipping may turn while falling, in degrees.
--taccastyle.css9pxThe ticket shape: for a different bite, redo the points with another radius.

Try them in the Playground

When to use it

For the menu of a portfolio or a magazine, when you want to show the latest news or recent work beside the items.

On phones

The panel takes the whole screen and the clippings, only the first two, sit inside the panel under the items, on a slightly darker paper.

With reduced motion

The panel appears already full size and everything comes and goes with a two-tenths fade: no growth, no askew sheets, no fall.

Pitfalls

  • clip-path also cuts outline and box-shadow: the focus mark must be drawn inside the shape, with an inset box-shadow.
  • If the panel content widens along with the panel, the text keeps rewrapping while it grows: give it the final size straight away and let the ticket uncover it.
  • With stagger from: 'random' on two different tweens the random order is not the same: to make the same sheet fall and turn together, compute the delays once and use them in both.
  • Changing transform-origin on an element that is already turned makes it jump: change it only while the clipping is straight, that is at the start of the fall.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.1 KB; the libraries: GSAP 28 KB.

Testing

Tested on 27 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