Skip to content
animorio
IT
Back to the library

Stacking certificates

Hover, ImagesGSAP, CSS onlyEasyCompressed weight: Demo 3.9 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

A list of awards: hovering the rows, each certificate opens from the bottom and lands on top of the previous one, slightly askew, like papers on a desk.

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>
<!--
  "Stacking certificates" 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>Stacking certificates</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="pagina">
    <header class="testa">
      <p class="sopra">Hover over the rows (on a phone, scroll or tap)</p>
      <h1 class="titolo">Awards and mentions</h1>
    </header>

    <div class="intestazione" aria-hidden="true">
      <span>Project</span><span>Award</span><span>From</span>
    </div>
    <ul class="premi">
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Casa Rota</span>
        <span class="premio__nome">Site of the day</span>
        <span class="premio__ente">Web Review</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #fbf3e8; --segno: #d9602a; --giro: -3.5deg">
          <span class="attestato__testa">Web Review</span>
          <span class="attestato__premio">Site of the day</span>
          <span class="attestato__a">awarded to Casa Rota</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Frantoio Alto</span>
        <span class="premio__nome">Typography mention</span>
        <span class="premio__ente">Type Prize</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #eef6f3; --segno: #0f4f4c; --giro: 2.5deg">
          <span class="attestato__testa">Type Prize</span>
          <span class="attestato__premio">Typography mention</span>
          <span class="attestato__a">awarded to Frantoio Alto</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Studio Lume</span>
        <span class="premio__nome">Development of the year</span>
        <span class="premio__ente">Web Review</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #fff8ee; --segno: #07201f; --giro: -1.5deg">
          <span class="attestato__testa">Web Review</span>
          <span class="attestato__premio">Development of the year</span>
          <span class="attestato__a">awarded to Studio Lume</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Cantina Selva</span>
        <span class="premio__nome">Site of the month</span>
        <span class="premio__ente">Motion Gallery</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #f3f0fa; --segno: #5b3fa3; --giro: 3.5deg">
          <span class="attestato__testa">Motion Gallery</span>
          <span class="attestato__premio">Site of the month</span>
          <span class="attestato__a">awarded to Cantina Selva</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Atlante Verde</span>
        <span class="premio__nome">Interaction mention</span>
        <span class="premio__ente">Type Prize</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #eef6f3; --segno: #146662; --giro: -2.5deg">
          <span class="attestato__testa">Type Prize</span>
          <span class="attestato__premio">Interaction mention</span>
          <span class="attestato__a">awarded to Atlante Verde</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
      <li class="premio" tabindex="0">
        <span class="premio__progetto">Forno Aurora</span>
        <span class="premio__nome">Site of the day</span>
        <span class="premio__ente">Motion Gallery</span>
        <div class="attestato" aria-hidden="true" style="--fondo: #fbf3e8; --segno: #a8440c; --giro: 1.5deg">
          <span class="attestato__testa">Motion Gallery</span>
          <span class="attestato__premio">Site of the day</span>
          <span class="attestato__a">awarded to Forno Aurora</span>
          <svg class="attestato__sigillo" viewBox="0 0 40 40"><path d="M20 1l3.4 5.6 6.3-1.9.4 6.6 6.1 2.4-3.1 5.8 3.1 5.8-6.1 2.4-.4 6.6-6.3-1.9L20 39l-3.4-5.6-6.3 1.9-.4-6.6-6.1-2.4 3.1-5.8-3.1-5.8 6.1-2.4.4-6.6 6.3 1.9z"/><circle cx="20" cy="20" r="9"/></svg>
          <span class="attestato__firma"></span>
        </div>
      </li>
    </ul>
  </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.

66 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 “Stacking certificates” 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

It is a sober table: project, award, who gave it. When the pointer enters a row, its certificate opens from the bottom next to the row and grows slightly; when it leaves, the certificate closes upwards. Every sheet that opens goes on top of all the others and has its own tilt: if you sweep quickly over the list the sheets stack up and for a moment there are three or four on the desk. On phones the certificate of the row crossing the middle of the screen opens.

How it works

One sheet per row

The certificate sits inside its row with position absolute, closed by clip-path: inset(100% 0 0 0). Opening means bringing the inset to zero; closing means bringing the bottom edge to 100%, so the sheet leaves on the opposite side.

The stack

A counter goes up on every opening and becomes the z-index of the sheet that opens: the last one is always on top. While the previous one closes, the new one passes in front of it.

Just askew enough

Every sheet has its own rotation (a --giro variable between -4 and 4 degrees) through the rotate property, separate from the transform GSAP uses: the animated scale does not wipe it out.

One listener

Instead of mouseenter and mouseleave on every row, one pointermove on the page finds the row under the pointer with closest: no flicker when crossing the words of the same row. Keyboard focus opens the sheet too.

Values to change

NameFileDefaultWhat it changes
DURATAscript.js0.5Seconds to open or close a sheet. Below 0.35 the stack is no longer visible.
PICCOLOscript.js0.9The scale the sheet starts from.
--giroindex.htmlfra -3.5 e 3.5 gradiThe tilt of each sheet: keep it different between neighbouring rows.
--fondo / --segnoindex.htmlcarta e coloreThe background and the colour of the border and seal of each certificate.

Try them in the Playground

When to use it

For awards, clients, publications: lists where the row says the name and the image confirms it. With more than ten rows use pages or filters, or the stack gets messy.

On phones

Without hover the sheet opens for the row crossing the centre of the screen, to the right of the row. The columns become lines.

With reduced motion

The sheets appear and disappear with no animation, but they do appear: they are content.

Pitfalls

  • An element's percentage padding is computed on its container's width, not its own: inside a narrow sheet in a wide row the text ends up squashed.
  • Keep centring and tilt in CSS's translate and rotate properties: GSAP's inline transform replaces the class's transform, and a translateY(-50%) written there is not read back as a percentage.
  • A sheet closing and being reopened halfway must start from where it is: use overwrite auto and put the starting clip-path back only when the closing is finished.
  • The certificate covers the rows below: give it pointer-events none, otherwise the pointer lands on the sheet instead of the row and everything flickers.

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.9 KB; the libraries: GSAP + ScrollTrigger 45 KB.

Testing

Tested on 21 October 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