Skip to content
animorio
IT
Back to the library

Shutter grid transition

Transitions, Hover, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The seeds Hollow Lane, a made-up village seed library, lends out: nine cards with real photos in a grid of stepped columns. On a click every card closes like a shutter, in a wave from the point of the click, the chosen one last; the seed’s page opens, with the photo coming out from behind two curtains and the number at the top rolling from 148 varieties to the packets left. «Back» opens the cards again one after the other. Minimal style. From the transition from the grid to a story on the 197 Historias Ilustradas site, Awwwards Site of the Day on 20/11/2026.

Rebuilt from scratch studying 197historiasilustradas.com by ++hellohello: 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>
<!--
  "Shutter grid transition" 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>Hollow Lane Seed Library</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the seeds a made-up village seed library lends out. A click on a card closes every card of the grid like a
       shutter, in a wave that starts from the card you clicked (which closes last), and the seed's own page opens: the
       photo comes out from behind two curtains and the number at the top rolls from the varieties in the library to
       the packets left of that seed. Back opens the cards again -->
  <main class="pagina">
    <header class="testa">
      <div class="marchio" aria-live="polite">
        <span class="conta" data-conta aria-hidden="true">
          <span class="cifra"><span class="striscia" data-striscia>0 1 2 3 4 5 6 7 8 9</span></span><span class="cifra"><span class="striscia" data-striscia>0 1 2 3 4 5 6 7 8 9</span></span><span class="cifra"><span class="striscia" data-striscia>0 1 2 3 4 5 6 7 8 9</span></span>
        </span>
        <span class="etichetta" aria-hidden="true">
          <span class="etichetta__riga" data-etichetta><span>varieties</span><span>packets left</span></span>
        </span>
        <span class="solo-lettore" data-letto>148 varieties</span>
      </div>
      <p class="mono testa__nome">Hollow Lane Seed Library</p>
      <button class="mono indietro" type="button" data-indietro tabindex="-1" aria-hidden="true">
        <span class="indietro__fondo" aria-hidden="true"></span>
        <span class="indietro__testo">[ Back ]</span>
      </button>
    </header>

    <section class="griglia" data-griglia aria-label="Seeds in the library">
      <button class="card" type="button" data-card data-i="0"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Breadseed poppy</span><span class="card__resto"><span>23 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="papavero.webp" width="900" height="600" alt="Dry poppy heads on grey linen" style="object-position: 52% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="1"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Orchard walnut</span><span class="card__resto"><span>6 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="noce.webp" width="900" height="600" alt="Walnuts in their shells" style="object-position: 60% 40%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="2"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Mammoth sunflower</span><span class="card__resto"><span>41 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="girasole.webp" width="900" height="600" alt="Two hands full of striped sunflower seeds" style="object-position: 50% 40%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="3"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Blue flax</span><span class="card__resto"><span>17 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="lino.webp" width="900" height="601" alt="A wooden bowl of brown flax seed" style="object-position: 34% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="4"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Slow-bolt coriander</span><span class="card__resto"><span>32 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="coriandolo.webp" width="900" height="600" alt="Coriander seeds spilling from a glass bowl on burlap" style="object-position: 38% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="5"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Lane dandelion</span><span class="card__resto"><span>9 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="tarassaco.webp" width="900" height="597" alt="Two dandelion seeds floating" style="object-position: 46% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="6"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">White sesame</span><span class="card__resto"><span>12 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="sesamo.webp" width="900" height="600" alt="Dry sesame pods in a golden field" style="object-position: 26% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="7"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Runner bean</span><span class="card__resto"><span>54 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="fagiolo.webp" width="900" height="600" alt="A crate of green beans" style="object-position: 55% 50%"></span></span></span></button>
      <button class="card" type="button" data-card data-i="8"><span class="card__cap"><span class="card__line" data-line><span class="card__nome">Broad bean</span><span class="card__resto"><span>28 left</span><span>Open</span></span></span></span><span class="card__ombra" data-ombra aria-hidden="true"></span><span class="card__media" data-media><span class="card__inner" data-inner><span class="card__zoom"><img data-img src="piantine.webp" width="900" height="600" alt="Beans sprouting in paper pots" style="object-position: 50% 55%"></span></span></span></button>
    </section>

    <section class="scheda" data-scheda aria-label="Seed" hidden>
      <div class="scheda__colonna scheda__testo" data-parte>
        <p class="mono scheda__piccolo" data-riga>Seed</p>
        <h1 class="scheda__nome" data-riga data-s-nome>Breadseed poppy</h1>
        <p class="mono scheda__latino" data-riga data-s-latino>Papaver somniferum</p>
        <p class="scheda__storia" data-riga data-s-storia>Grown for the poppy rolls of the corner bakery.</p>
      </div>
      <div class="scheda__colonna scheda__fotocol" data-parte>
        <div class="scheda__foto" data-foto>
          <img data-foto-img src="papavero.webp" width="900" height="600" alt="">
          <span class="tenda tenda--scura" data-tenda-scura aria-hidden="true"></span>
          <span class="tenda tenda--chiara" data-tenda-chiara aria-hidden="true"></span>
        </div>
      </div>
      <div class="scheda__colonna scheda__dati" data-parte>
        <dl>
          <div data-riga><dt class="mono">Saved by</dt><dd data-s-chi>Edna Vale</dd></div>
          <div data-riga><dt class="mono">In the library since</dt><dd data-s-anno>1962</dd></div>
          <div data-riga><dt class="mono">Sow</dt><dd data-s-semina>March</dd></div>
          <div data-riga><dt class="mono">Germination</dt><dd data-s-germ>88%</dd></div>
        </dl>
        <button class="prendi" type="button" data-prendi data-riga>
          <span class="prendi__fondo" aria-hidden="true"></span>
          <span class="prendi__finestra"><span class="prendi__testo" data-prendi-testo><span>Borrow a packet</span><span>Set aside for you</span></span></span>
        </button>
      </div>
    </section>
  </main>

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

68 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Shutter grid transition” 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 collection of Hollow Lane Seed Library, a made-up village seed library. At the top left a three-digit counter says 148 varieties; in the middle the library’s name. Below, nine square cards with real photos of the seeds (poppy, walnut, sunflower, flax, coriander, dandelion, sesame, runner bean, broad bean), in stepped columns like the site’s grid, each with its name and the packets left in monospace and a soft shadow on the paper. On hover the other cards step back, the photo comes a touch closer and «23 left» rolls to «Open». Pressed, the card sinks a pixel and its shadow tightens. On a click every card closes like a shutter: the window slides down, the photo inside slides up and grows, the caption leaves at the top and the shadow fades, in a wave from the point of the click, and the chosen card closes last. The seed’s page opens: the big name, the Latin name, two lines of story, who saved it, the year, when to sow, the germination, and the photo coming out from behind a light and a dark curtain pulling away to the right, while the number at the top rolls like an odometer to the packets left and the label goes from «varieties» to «packets left». «Borrow a packet» sets one aside and takes one off the count. «Back» or Esc open the cards again one after the other. Left alone, the page opens a seed now and then and goes back to the grid.

How it works

The card in three layers

Each card has a window (overflow hidden), inside it a panel that slides and inside that the photo. To close it the panel goes to yPercent 100 and the photo to yPercent -100 with a 1.15 scale, as on the site: the two opposite moves make the photo seem to stand still while the shutter comes down. The caption line also goes to -100 in its own window. The CSS hover sits on a fourth layer, because GSAP writes the photo’s transform.

The wave from the click

The distance from each card’s centre to the click is measured and the farthest becomes distMax. Each card starts after dist / distMax * .15 s and closes in .35 s; the clicked card starts at .25 s, last, as on the site. From the keyboard the point is the card’s centre.

The curve

The site asks for an «ease-80» curve it never registers, and GSAP quietly falls back to its default. Here the shutters use the site’s signature curve, cubic-bezier(.33,0,0,1), written as a function (a Bezier solved with a few Newton steps), so no CustomEase is needed.

The odometer

Three digits (padStart to 3, as on the site), each a strip from 0 to 9 in a window one line tall: the new digit is yPercent = -digit * 10, in .65 s with power2.inOut, the right digit first and the others .04 s apart.

Two curtains and the way back

Over the page’s photo a curtain in the page colour at 98% and under it one in ink pull away to the right (transform-origin right, scaleX to 0) in 1 s with cubic-bezier(.8,0,0,1), 100 ms apart; the photo comes in from translateX(-20%) and a 1.2 scale in 1.2 s with expo.out after .2 s. Going back, the page fades in .3 s and the cards open again in .9 s with expo.out, staggered by index / total * .25 s.

Values to change

NameFileDefaultWhat it changes
CLOSEscript.js0.35Seconds each card takes to close (the site uses .35).
WAVEscript.js0.15Seconds the wave takes from the clicked card to the farthest (the site uses .15).
CLICKED_ATscript.js0.25When the clicked card closes, last (the site uses .25 s).
ZOOMscript.js1.15How much the photo grows while its card closes (the site uses 1.15).
REOPENscript.js0.9Seconds each card takes to open again (the site uses .9 with expo.out).
REOPEN_WAVEscript.js0.25Seconds over which the cards open one after the other (the site uses .25).
COUNTscript.js0.65Seconds the number takes to roll to the packets left (the site uses .65).
CURTAINscript.js1Seconds the two curtains take to pull away from the photo (the site uses 1).
DRIFTscript.js20How far the photo slides in under the curtains, in percent (the site uses 20).
PRESSscript.js1Pixels a pressed card sinks.
AUTOscript.js2.4Seconds before the page opens a seed by itself, when nobody touches it.

Try them in the Playground

When to use it

For the gallery of an archive, a collection, a product catalogue, a portfolio or a library: many alike cards and a page for each, with a passage that shows which card you came from.

On phones

Same shutters and same wave from the tap. The grid picks its columns and the side of the cards by itself so all nine fit the screen, height included; the seed’s page puts the photo next to the name and the data in two columns below.

With reduced motion

No shutters or curtains: the cards fade out in a wave, the seed’s page fades in, the number changes without rolling and the cards come back with a fade.

Pitfalls

  • GSAP writes the photo’s transform (yPercent and scale): the hover zoom goes on a wrapper in between, or the CSS is lost.
  • The site’s «ease-80» curve doesn’t exist in GSAP: an unknown ease throws no error, GSAP quietly uses its default. Curves are registered or passed as a function.
  • Cards in stepped columns are placed from the script and measured again on resize, height included: with nine cards the phone box picks other columns.
  • The counter digits move with yPercent on the whole strip (10% per digit), not pixels, so they stay right at any font size.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

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

Testing

Tested on 20 November 2026

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

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