Skip to content
animorio
IT
Back to the library

Diamond archive

Images, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The archive of a small made-up museum of everyday objects, the Small Things Museum: the thirteen cards nearest the middle appear one at a time, at random steps, gathered in a small 1-3-5-3-1 diamond; then they fly to their places in a checkerboard-staggered grid while the others come in from the edges of the screen. The grid never ends: you drag it, it follows with a lag, it shrinks while you hold it, it glides on when you let go and it leans a little toward the pointer. Real photos: a key, a teacup, a compass, a pocket watch, a thimble. Minimal style. From the grid on the home of 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 tab holds the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Diamond archive" 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>Small Things Museum, the archive</title>
  <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 archive of a made-up museum of everyday objects. The objects nearest the middle appear one by one, gathered
       in a small 1-3-5-3-1 diamond, then fly out to their places in a staggered grid while the others come in from the
       edges of the screen. The grid has no end: drag it, it follows with a lag, it shrinks while you hold it and it
       glides on when you let go -->
  <main class="palco" data-palco aria-label="Small Things Museum, archive of everyday objects">
    <div class="piano" data-piano></div>

    <header class="testa">
      <p class="marchio">Small Things Museum</p>
      <button class="parentesi" type="button" data-replay><span class="parentesi__testo">Replay</span></button>
    </header>

    <footer class="piede">
      <p class="piede__nota">Objects given by the people who used them</p>
      <p class="piede__aiuto" data-aiuto>Drag to wander</p>
    </footer>
  </main>

  <template data-oggetti>
    <i data-foto="chiave.webp" data-nome="Door key" data-corto="Key" data-anno="1904" data-dono="Given by the Lowe family, Mill Lane"></i>
    <i data-foto="tazza.webp" data-nome="Teacup" data-anno="1932" data-dono="Given by Ines Varga, Harbour Street"></i>
    <i data-foto="bussola.webp" data-nome="Compass" data-anno="1958" data-dono="Given by a retired ferry pilot"></i>
    <i data-foto="orologio.webp" data-nome="Pocket watch" data-corto="Watch" data-anno="1911" data-dono="Given by Tomas Ekberg, Station Road"></i>
    <i data-foto="forbici.webp" data-nome="Scissors" data-anno="1949" data-dono="Given by the Corner Tailors"></i>
    <i data-foto="occhiali.webp" data-nome="Reading glasses" data-corto="Glasses" data-anno="1987" data-dono="Given by the school librarian"></i>
    <i data-foto="ditale.webp" data-nome="Thimble" data-anno="1923" data-dono="Given by Rosa Delle, seamstress"></i>
    <i data-foto="pennino.webp" data-nome="Fountain pen" data-corto="Pen" data-anno="1964" data-dono="Given by the town notary"></i>
    <i data-foto="coltellino.webp" data-nome="Pocket knife" data-corto="Knife" data-anno="1971" data-dono="Given by a forest warden"></i>
    <i data-foto="cucchiaio.webp" data-nome="Wooden spoon" data-corto="Spoon" data-anno="1990" data-dono="Given by the Bakehouse on Quay Row"></i>
  </template>

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

21 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 “Diamond archive” 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 archive of the Small Things Museum, a made-up museum of objects given by the people who used them. On a white ground, at first, the thirteen cards nearest the middle appear one at a time, in a scattered order, with a small pop, and form a diamond of five rows (one, three, five, three, one) small in the middle of the screen. Soon the diamond opens: every card flies to its place in the grid growing to full size, while the others come in from the edges of the screen, the nearest first; last come the labels, in square brackets, with the name of the object and the year. The grid is staggered like a checkerboard and never ends: you drag it in any direction, it follows with a soft lag, while you hold it it shrinks to 80% and the cards take a shadow, when you let go it glides on a little; untouched it leans slightly toward the pointer, and the photos shift inside their windows. Over a card the photo grows, the label fills with black from the left and the donor appears below. A click or Enter brings the card to the middle; the arrows move the grid; «Replay» gathers it again. Left alone, the preview holds the grid, drags it, lets it go, lights an object and starts again.

How it works

A plane with no end

The cards sit on a plane centred on the screen: a grid with an even number of columns and rows, enough to cover the screen even with the plane at 80%. The sizes are the site’s, in proportion to the card (7.875): gaps of 7.5 across and 3 down, even rows pushed sideways by 5.6, even columns lowered by 4, the checkerboard. Every frame each card is its base plus the shift of the plane, wrapped on the size of a whole tile: the one leaving a side comes back on the other.

The diamond

The thirteen cards nearest the middle go to the places of a diamond with rows of 1-3-5-3-1, at a step of .8 card and at scale .6, all shrunk if it does not fit in 92% of the width. The pairing between diamond places and grid places is picked nearest-first and then improved by pairwise swaps while the total distance goes down, as on the site, so the paths do not cross.

One at a time, then the flight

The thirteen appear in a shuffled order, each after a random step between .06 and .14 seconds from .5 (ours: a small pop with back.out). .8 seconds after the last one they fly to their places in 1.8 seconds with expo.inOut, plus up to .1 at random. The other visible cards start projected on the edge of the screen along the line from the middle and come in .1 seconds later plus up to .4 by their distance; the labels arrive .9 seconds after the flight. GSAP does not animate pixels but the progress of each card, and the path is worked out again every frame: if the window changes size halfway, the diamond and the edges stay right.

Hold, drag, let go

One ticker loop follows the target at .08 a frame, corrected by the real time of the frame. Dragging starts after 8 pixels or 300 milliseconds of pressing (a finger goes 2.6 times faster); meanwhile the plane goes to .8 in .4 seconds power2.out and back to 1 in .4 power2.inOut. Ours: the speed of the last moments that carries the plane a little further, and the soft shadow growing under the cards while you hold them.

Pointer, labels, keyboard

Untouched, the plane shifts 1.6 card widths against the pointer, and the photo inside each window a little more (ours). On hover the photo goes to 1.08 in 500 milliseconds and the bracketed name fills with black from the left in 300 milliseconds on the expo curve, like the site’s labels; the donor appears below. A click, Enter or the keyboard focus bring the card to the middle; the arrows move the plane by one card.

Values to change

NameFileDefaultWhat it changes
APPEAR_MINscript.js0.06The shortest step between two cards appearing in the diamond, in seconds (the site uses .06).
APPEAR_MAXscript.js0.14The longest step between two cards appearing, in seconds (the site uses .14).
FLYscript.js1.8Seconds of the flight from the diamond to the grid (the site uses 1.8 with expo.inOut).
DIAMOND_STEPscript.js0.8Distance between cards in the diamond, in card widths (the site uses .8).
DIAMOND_SCALEscript.js0.6Size of the cards in the diamond (the site uses .6).
FOLLOWscript.js0.08How much of the way the plane covers every frame (the site uses .08).
HOLD_SCALEscript.js0.8Size of the plane while you hold it (the site uses .8).
PARALLAXscript.js1.6How far the plane leans against the pointer, in card widths (the site uses 1.6).
GLIDEscript.js0.22Seconds of speed the plane keeps when you let go (0 stops it at once).
TOUCH_DRAGscript.js2.6How much faster a finger moves the plane than a mouse (the site uses 2.6).

Try them in the Playground

When to use it

For the archive or collection of a museum, a foundation or a library, for the catalogue of a vintage shop, for the portfolio of a studio with many square works, for the products page of a design brand. It works when there are many things of the same size and wandering among them is worth more than reading them in a row.

On phones

The same animations. The card is sized on both height and width (min(9vw, 16vh), at least 60 pixels), the diamond shrinks if it does not fit in 92% of the width, and the sizes are worked out again even halfway through the gathering. With a finger the plane goes 2.6 times faster, as on the site; a tap on a card brings it to the middle and lights it. Below 520 pixels only «Drag to wander» stays.

With reduced motion

No diamond and no flight: the grid fades in over .6 seconds, already in place. No parallax, no plane shrinking, no glide when you let go, no automatic tour; dragging follows the pointer at once.

Pitfalls

  • The plane shrinks around the middle: so the tile edges never show, columns and rows are counted on the screen divided by .8, plus three, and must be even, or the checkerboard breaks when a card comes back on the other side.
  • If GSAP animated the pixels of the flight, a window changing height halfway (the viewer’s safety net) would leave the diamond crooked: only the progress from 0 to 1 is animated, and start and end are worked out again every frame.
  • On the site the keyboard focus could end on a card off screen: here a visible focus brings the card to the middle; a focus that comes with the mouse does not (it checks :focus-visible), or every grab would make the plane jump.
  • The vertical wheel is left to the page around the demo: only a sideways wheel (or with Shift) moves the plane, or the preview on the card page would hold the scroll.
  • The automatic tour of the preview stops at the first real gesture and comes back after six seconds without gathering again.

Libraries

GSAP 3.15.0, Geist Mono (font variabile) 5.3.0.

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