Skip to content
animorio
IT
Back to the library

Fanned step cards

Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 6.9 KBGSAP 28 KBFreeDownload the zip

Quireful, a made-up book club, lays its four steps (Pick, Box, Read, Talk) on the table like a loose, slightly crooked hand of cards. Move across them and the card under the pointer straightens and grows to 1.075 on an elastic spring, the others slide away, the nearest ones the most, the line icon draws itself again and an accent line runs under the handwritten name. Minimal style. From the «How it works» cards 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>
<!--
  "Fanned step cards" 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>Quireful, how the book club works</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bricolage-grotesque@5.3.0/standard.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>
  <!-- Quireful, a made-up monthly book club. Its four steps lie on the table like a loose hand of cards, a little
       crooked. Move along them and the card under the pointer straightens up and grows while the others slide away
       from it, the nearest ones the most. When nobody touches the page the hand plays itself, card after card. -->
  <main class="page">
    <header class="bar">
      <p class="brand" data-in>
        <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 4.5c2.6-.9 5-.6 7 1 2-1.6 4.4-1.9 7-1v11c-2.6-.9-5-.6-7 1-2-1.6-4.4-1.9-7-1z M10 5.5v11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>
        Quireful
      </p>
      <a class="join" href="#" data-in data-join><span class="join__bg" aria-hidden="true"></span><span class="join__txt">Join the club</span></a>
    </header>

    <div class="head">
      <p class="eyebrow" data-in>How it works</p>
      <h1 class="title" data-title>Four steps to a fuller shelf.</h1>
    </div>

    <div class="stage" data-stage>
      <button class="card" type="button" data-card style="--c: var(--butter)" aria-label="Pick: choose your reads">
        <span class="card__body" data-body>
          <span class="card__lift" data-lift aria-hidden="true"></span>
          <span class="card__face">
            <span class="card__tag"><span class="card__name">Pick</span><svg class="card__line" viewBox="0 0 60 8" aria-hidden="true"><path pathLength="1" d="M2 5.5c14-3 34-4 56-1.5" data-line/></svg></span>
            <svg class="card__icon" viewBox="0 0 24 24" aria-hidden="true"><path pathLength="1" data-draw d="M5 4.5h10.5a2.5 2.5 0 0 1 2.5 2.5v13H7.5A2.5 2.5 0 0 1 5 17.5z"/><path pathLength="1" data-draw d="M5 17.5A2.5 2.5 0 0 1 7.5 15H18"/><path pathLength="1" data-draw d="M11 4.5v6l2-1.4 2 1.4v-6"/></svg>
            <span class="card__title">Choose your reads</span>
            <span class="card__text">Six new hardcovers land on the 1st. Pick up to three.</span>
            <span class="card__foot">New on the 1st</span>
          </span>
          <span class="card__grain" aria-hidden="true"></span>
        </span>
      </button>
      <button class="card" type="button" data-card style="--c: var(--apricot)" aria-label="Box: build your box">
        <span class="card__body" data-body>
          <span class="card__lift" data-lift aria-hidden="true"></span>
          <span class="card__face">
            <span class="card__tag"><span class="card__name">Box</span><svg class="card__line" viewBox="0 0 60 8" aria-hidden="true"><path pathLength="1" d="M2 5c16-3.5 36-3.5 56-1" data-line/></svg></span>
            <svg class="card__icon" viewBox="0 0 24 24" aria-hidden="true"><path pathLength="1" data-draw d="M3.5 8 12 4.5 20.5 8v8.5L12 20.5l-8.5-4z"/><path pathLength="1" data-draw d="M3.5 8 12 12l8.5-4"/><path pathLength="1" data-draw d="M12 12v8.5"/><path pathLength="1" data-draw d="m7.8 6.2 8.5 4"/></svg>
            <span class="card__title">Build your box</span>
            <span class="card__text">One from this month’s shelf, the rest is up to you.</span>
            <span class="card__foot">Up to 3 books</span>
          </span>
          <span class="card__grain" aria-hidden="true"></span>
        </span>
      </button>
      <button class="card" type="button" data-card style="--c: var(--blush)" aria-label="Read: open it at your door">
        <span class="card__body" data-body>
          <span class="card__lift" data-lift aria-hidden="true"></span>
          <span class="card__face">
            <span class="card__tag"><span class="card__name">Read</span><svg class="card__line" viewBox="0 0 60 8" aria-hidden="true"><path pathLength="1" d="M2 4.5c18-2.5 38-3 56 .5" data-line/></svg></span>
            <svg class="card__icon" viewBox="0 0 24 24" aria-hidden="true"><path pathLength="1" data-draw d="M12 6.5C10 5 7 4.4 3.5 4.8v13.4C7 17.8 10 18.4 12 20c2-1.6 5-2.2 8.5-1.8V4.8C17 4.4 14 5 12 6.5z"/><path pathLength="1" data-draw d="M12 6.5V20"/><path pathLength="1" data-draw d="M6 8.6c1.4-.1 2.8.2 3.8.8"/><path pathLength="1" data-draw d="M14.2 9.4c1-.6 2.4-.9 3.8-.8"/></svg>
            <span class="card__title">Open it at your door</span>
            <span class="card__text">A sturdy box, a note from the curator, no aisles.</span>
            <span class="card__foot">Free shipping</span>
          </span>
          <span class="card__grain" aria-hidden="true"></span>
        </span>
      </button>
      <button class="card" type="button" data-card style="--c: var(--lilac)" aria-label="Talk: talk it over">
        <span class="card__body" data-body>
          <span class="card__lift" data-lift aria-hidden="true"></span>
          <span class="card__face">
            <span class="card__tag"><span class="card__name">Talk</span><svg class="card__line" viewBox="0 0 60 8" aria-hidden="true"><path pathLength="1" d="M2 5c15-2 37-4.5 56-1" data-line/></svg></span>
            <svg class="card__icon" viewBox="0 0 24 24" aria-hidden="true"><path pathLength="1" data-draw d="M4 6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5v7a2.5 2.5 0 0 1-2.5 2.5H11l-4.5 3.8V16A2.5 2.5 0 0 1 4 13.5z"/><path pathLength="1" data-draw d="M8 8.8h8"/><path pathLength="1" data-draw d="M8 11.8h5"/></svg>
            <span class="card__title">Talk it over</span>
            <span class="card__text">Join the monthly thread and vote for the members’ pick.</span>
            <span class="card__foot">In the app</span>
          </span>
          <span class="card__grain" aria-hidden="true"></span>
        </span>
      </button>
    </div>
  </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.

35 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 “Fanned step cards” 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

Under the title «Four steps to a fuller shelf.», which comes in word by word like paper unfolding, four pastel cards rise from below on a spring and stay a little crooked, like a hand laid on a table: Pick (choose the books), Box (build the box), Read (open it at the door) and Talk (talk it over). The row is split into four strips: the card under the pointer straightens, grows and comes to the front with a softer, wider shadow, its line icon draws itself again and a magenta line runs under the handwritten name; the others slide away, the nearest ones the most. On leave the card goes back crooked in a new way. On click the card gives a little and springs back. If nobody touches the page, the hand plays itself, one card after the other.

How it works

The crooked hand

Each card is a button placed in pixels (measured again on resize) and takes a random pose: xPercent and yPercent between −5 and 5, a rotation between −7.5 and 7.5 degrees. The random numbers come from a seed, so the hand always lands the same way.

Coming up

gsap.from on the cards with yPercent: "+=150" and a random rotation, 1.05 seconds in elastic.out(1, 0.75), 0.088 seconds between cards; then the icons draw themselves with stroke-dashoffset from 1 to 0.

Four strips

On pointer move the width of the hand is split in four: Math.ceil(progress × 4) gives the active card. Work is done only when the strip changes.

One up, the others away

The active card goes to x, y and rotation 0 and to scale 1.075 in 0.85 seconds with the same spring; the inside of every other card slides by 45 / (place − active place) percent, so the neighbour by 45 and the next one by 22.5. Two elements: the wrapper for the pose, the child for the push.

Shadow, line and press

A second, wider shadow layer fades in under the lifted card, the accent line draws under the name and the icon draws again; on click the scale drops by 0.035 and on release it comes back with elastic.out(1, 0.45).

Values to change

NameFileDefaultWhat it changes
LIFTscript.js1.075How much the card under the pointer grows (the site uses 1.075).
PUSHscript.js45How far the other cards slide away, in % of a card, divided by the distance (the site uses 45).
TILTscript.js7.5The largest rest rotation of a card, in degrees (the site uses 7.5).
SPRINGscript.js0.85Seconds of the spring when a card comes up (the site uses 0.85).
OVERLAPscript.js0.84How much of a card the next one leaves visible, on a wide screen.
TOURscript.js1.25Seconds the tour rests on each card when nobody touches.
IDLEscript.js2.2Seconds of stillness before the tour starts.

Try them in the Playground

When to use it

For the «how it works» section of a subscription, a club, an app or any service in a few steps: the steps stay light like cards laid on a table and read one at a time as you move over them.

On phones

On a phone the four cards overlap more and are sized on the height too, the push is shorter and only the name, the icon and the title stay inside. A tap lifts the card, a second tap lays it down, and the tour starts again after a few seconds.

With reduced motion

No rise, no springs or pushes: the hand is already laid out, and the pointed card only fades in its shadow and accent line.

Pitfalls

  • GSAP’s transform on the card would wipe the push: the pose (x, y, rotation, scale) goes on the wrapper and the xPercent push on the child, as on the site.
  • The strips are measured on the width of the hand, not the page, otherwise the end cards light up only near the edges.
  • With pathLength="1" GSAP would round stroke-dashoffset to 0 or 1: autoRound is off at the top of the script.
  • The lifted card comes to the front (z-index) at once and goes back only a moment later, otherwise you see it pass under its neighbour while it settles.

Libraries

GSAP 3.15.0, Bricolage Grotesque (font variabile) 5.3.0, Caveat (font variabile) 5.3.0.

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