Skip to content
animorio
IT
Back to the library

Genre photo pop

Hover, Images, TextCSS only, GSAPMediumCompressed weight: Demo 7.3 KBGSAP 28 KBFreeDownload the zip

Hollow Lane Books, a made-up book club, with a big list of genres: point at one and four photo frames with a white border spring out around the word, tilted at random, on an elastic CSS spring; the word turns wider and raspberry, its neighbours step aside and the number of titles rolls up beside it. Minimal style. From the genre list of the Aardvark Book Club site, Awwwards Site of the Day on 30/8/2026.

Rebuilt from scratch studying aardvarkbookclub.com by Future Three, Dylan Brouwer: 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>
<!--
  "Genre photo pop" 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 Books, browse by genre</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/caveat@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Hollow Lane Books, a made-up book club. A big list of genres: point at one and four framed photos spring out
       around the word, tilted at random, while the word swaps for a wider version in the accent colour, the
       neighbours step aside and the number of titles rolls up beside it. Move between genres and the frames slide
       along with a spring; move the pointer and they drift a little. When nobody touches the page the genres light
       up by themselves, one after the other. -->
  <main class="page" data-page>
    <header class="bar">
      <p class="brand" data-in>Hollow Lane Books</p>
      <p class="note" data-in data-note>pick a mood,<br>we’ll pick the book</p>
    </header>

    <div class="wrap" data-wrap>
      <ul class="list" data-list>
        <li class="item" data-item data-count="214">
          <button class="link" type="button" data-link>
            <span class="word word--rest">Mystery</span>
            <span class="word word--on" aria-hidden="true">Mystery</span>
            <span class="count" aria-hidden="true"><span data-num>0</span> titles</span>
          </button>
        </li>
        <li class="item" data-item data-count="386">
          <button class="link" type="button" data-link>
            <span class="word word--rest">Romance</span>
            <span class="word word--on" aria-hidden="true">Romance</span>
            <span class="count" aria-hidden="true"><span data-num>0</span> titles</span>
          </button>
        </li>
        <li class="item" data-item data-count="152">
          <button class="link" type="button" data-link>
            <span class="word word--rest">Sci‑fi</span>
            <span class="word word--on" aria-hidden="true">Sci‑fi</span>
            <span class="count" aria-hidden="true"><span data-num>0</span> titles</span>
          </button>
        </li>
        <li class="item" data-item data-count="97">
          <button class="link" type="button" data-link>
            <span class="word word--rest">Poetry</span>
            <span class="word word--on" aria-hidden="true">Poetry</span>
            <span class="count" aria-hidden="true"><span data-num>0</span> titles</span>
          </button>
        </li>
      </ul>

      <div class="holding" data-holding aria-hidden="true">
        <div class="holder" data-holder>
          <div class="box" data-box>
            <img src="nebbia.webp" alt="" width="640" height="427">
            <img src="rosa.webp" alt="" width="640" height="427">
            <img src="finestre.webp" alt="" width="640" height="427">
            <img src="onda.webp" alt="" width="640" height="427">
          </div>
        </div>
        <div class="holder" data-holder>
          <div class="box" data-box>
            <img src="pioggia.webp" alt="" width="640" height="427">
            <img src="rose.webp" alt="" width="640" height="427">
            <img src="scie.webp" alt="" width="640" height="427">
            <img src="fiore.webp" alt="" width="640" height="427">
          </div>
        </div>
        <div class="holder" data-holder>
          <div class="box" data-box>
            <img src="pioggia.webp" alt="" width="640" height="427" style="--fx: 30%">
            <img src="rose.webp" alt="" width="640" height="427" style="--fx: 70%">
            <img src="scie.webp" alt="" width="640" height="427" style="--fx: 25%">
            <img src="fiore.webp" alt="" width="640" height="427" style="--fx: 62%">
          </div>
        </div>
        <div class="holder" data-holder>
          <div class="box" data-box>
            <img src="nebbia.webp" alt="" width="640" height="427" style="--fx: 70%">
            <img src="rosa.webp" alt="" width="640" height="427" style="--fx: 40%">
            <img src="finestre.webp" alt="" width="640" height="427" style="--fx: 75%">
            <img src="onda.webp" alt="" width="640" height="427" style="--fx: 30%">
          </div>
        </div>
      </div>
    </div>

    <p class="hint" data-in data-hint>Point at a genre</p>
  </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.

34 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 “Genre photo pop” 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

On the warm paper of Hollow Lane Books, a made-up book club, four genres written huge one under the other: Mystery, Romance, Sci-fi, Poetry. Point at one and the word swaps for a wider raspberry copy that arrives squashed and blurred, the words above and below step aside, the others fade and the number of titles rolls up beside it. Around it four photo frames with a white border spring out, two above and two below, each tilted and shifted at random: a foggy forest and rain on glass for mystery, dried roses for romance, skyscraper windows and light trails for sci-fi, a wave and a flower for poetry. Moving from genre to genre the frames slide after it on a spring and change photo; the pointer moves them a little. On click the word and the frames are pressed and come back. If nobody touches the page, the genres light up by themselves one after the other.

How it works

The list and the double word

Each genre is a button with two copies of the word in the same grid cell: the resting one and the lit one, wider (font-stretch 125%) and raspberry, which starts at opacity 0, scale .75 1.25 and a touch of blur and comes to 1 in .3 s on a bouncy curve.

The neighbours step aside

With sibling selectors and :has() the word under the lit one moves down by .3 words and the one above moves up, the two at two rows by a third of that, in .5 s; the others fade to 30%.

The four frames

Four frames at 272 by 419 sit around the lit word: two above with their bottom on the middle of the row, two below half a frame lower, half a frame away from the word. They grow from scale 0 to 1 in .4 s and move in .85 s on a spring written in CSS with linear().

Chance and pointer

At every new genre each frame takes a random offset and tilt of ±15 (percent and degrees); the pointer position over the list, normalised and minus .75, moves them by another ±15% and ±10%, in opposite directions for the four.

The right photo

Each frame holds the four photos stacked; the one of the lit genre is picked with CSS alone, with :has(.item:nth-of-type(n).is-on) and img:nth-of-type(n). When closing, the photo of the last genre stays inside until the frame is gone.

The count and the tour

Beside the word the number of titles rises with GSAP in .7 s and bounces up from below; if nobody touches the page, delayedCall lights the genres one after the other and moves a pretend pointer.

Values to change

NameFileDefaultWhat it changes
SPRINGscript.js0.85Seconds of the elastic move of the frames (the site uses .85).
POPscript.js0.4Seconds the frames take to grow from zero (the site uses .4).
SCATTERscript.js15Random offset (%) and tilt (degrees) of each frame at every genre (the site uses 15).
PARALLAXscript.js15How far the frames drift with the pointer, in % (the site uses 15 and 10).
SHIFTscript.js0.3How far the genres above and below step aside, in words.
WIDEscript.js125Width of the lit word on the wdth axis (100 is the normal word).
TOURscript.js1.6Seconds on each genre in the tour, when nobody touches the page.

Try them in the Playground

When to use it

For a book club, a bookshop, a reading blog, a music or film platform, a shop with a few big categories: the words stay clean and the photos only arrive when you look for them.

On phones

On a phone the words and the frames are sized on the height too (vh) and the frames stay inside the screen; a tap lights a genre, a second tap closes it, and the tour starts again after a few seconds.

With reduced motion

No springs, scaling or movement: the word changes colour with a fade, the neighbours stay still and the frames fade in where they are, slightly tilted.

Pitfalls

  • The two copies of the word share one grid cell: the button takes the width of the wider one and nothing jumps when they swap.
  • A CSS spring with linear() goes on the transition of translate and transform; scale gets its own shorter curve, or the frames grow too slowly.
  • pointerenter also fires on touch: hover counts only for the mouse (pointerType), on a phone use the click, and a second tap closes.
  • When closing, keep the photo of the genre just left visible (an extra class) until the frame is back to zero, or the frame goes empty while closing.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Caveat (font variabile) 5.3.0.

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

Testing

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