Skip to content
animorio
IT
Back to the library

Tilted testimonial deck

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

The testimonials of Pantile, a made-up branding studio, as a deck of tilted cards on warm paper: a click on the top half throws the top card up and tucks it under the deck while the next one straightens, a click on the bottom half brings the last card back up from below. A coral arrow follows the pointer and turns to say which way, the side ticks stretch for the card on top and the client name rolls under the deck. Inspired by the Two26 Studio site.

Rebuilt from scratch studying two26.studio by ZzStudio: 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>
<!--
  "Tilted testimonial deck" 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>Pantile, kind words</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/instrument-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The testimonials of Pantile, a made-up branding studio, as a deck of tilted cards. Click the top half of the
       deck for the next card, the bottom half to go back; the arrow that follows the pointer says which. -->
  <main class="scena">
    <header class="testa">
      <p class="testa__marca">
        <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 6.2 10 3l7 3.2v1.6L10 4.8 3 7.8Z" fill="currentColor"/><path d="M4.6 9.4h10.8M4.6 12.6h10.8M4.6 15.8h10.8" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
        Pantile
      </p>
      <h1 class="testa__titolo">Kind words from <em>the people we built for</em></h1>
    </header>

    <section class="banco" aria-roledescription="carousel" aria-label="Client testimonials">
      <nav class="tacche" aria-hidden="true" data-tacche></nav>
      <div class="mazzo" data-mazzo tabindex="0" aria-live="polite">
        <span class="mazzo__meta mazzo__meta--su" aria-hidden="true"></span>
        <span class="mazzo__meta mazzo__meta--giu" aria-hidden="true"></span>
      </div>
    </section>

    <footer class="piede">
      <div class="piede__chi" aria-hidden="true">
        <span class="piede__finestra"><span class="piede__nomi" data-nomi></span></span>
        <span class="piede__lavoro"><span class="piede__lavori" data-lavori></span></span>
      </div>
      <p class="piede__aiuto">
        <span><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M6 9.5V2.5M3 5.2 6 2.3l3 2.9" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>Top half, next</span>
        <span><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M6 2.5v7M3 6.8l3 2.9 3-2.9" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>Bottom half, back</span>
      </p>
    </footer>

    <div class="freccia" data-freccia aria-hidden="true">
      <span class="freccia__tondo" data-tondo>
        <svg class="freccia__segno" data-segno viewBox="0 0 24 24"><path d="M12 18.5V5.8M6.6 11 12 5.6l5.4 5.4" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
      </span>
    </div>
  </main>

  <template data-carta>
    <article class="carta">
      <span class="carta__ombra" aria-hidden="true"></span>
      <div class="carta__faccia">
        <svg class="carta__virgolette" viewBox="0 0 40 30" aria-hidden="true"><path d="M2 29V17.5C2 8.6 6.4 3 14.6 1l1.6 3.6C11.4 6.2 9.3 9.3 9.2 13.6h6.6V29Zm22 0V17.5C24 8.6 28.4 3 36.6 1l1.6 3.6c-4.8 1.6-6.9 4.7-7 9h6.6V29Z" fill="currentColor"/></svg>
        <blockquote class="carta__frase" data-frase></blockquote>
        <div class="carta__firma">
          <span class="carta__sigla" data-sigla><span data-sigla-testo></span></span>
          <span class="carta__chi"><strong data-nome></strong><span data-ruolo></span></span>
          <span class="carta__logo" data-logo></span>
        </div>
        <span class="carta__riflesso" aria-hidden="true"></span>
      </div>
    </article>
  </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.

18 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 “Tilted testimonial deck” 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

In the centre a deck of six ivory cards with a thin coral edge, each one tilted a few degrees left or right; the one on top stands straight and holds the quote in a serif, the client initials in a black circle, the name, the role and the company. Above, the Pantile mark and the title «Kind words from the people we built for», on the left a column of ticks, below the client name and the work done. With the pointer over the deck a coral circle with an arrow appears, follows it and points up in the top half and down in the bottom half. A click at the top throws the top card upwards, turning it a little more, then lowers it under the deck at its own tilt, while the next one straightens with a one-pixel settle and the others grow by a step; a click at the bottom brings the last card back up from below. Shadows and sheens follow each card's tilt, the active tick stretches and turns coral, the name below rolls. When nobody touches it, the arrow leafs through the deck on its own.

How it works

Fixed tilts

Each card has its own angle from a palette of eight (−7.5, 6.8, −5.5, 8.2, −8.5, 6.2, −7, 7.8 degrees); the top one goes to zero and each one below is DEPTH_SCALE smaller.

A throw in two halves

Next: the top card rises to yPercent −FLY_HEIGHT turning FLY_TILT degrees more, right and left on alternate throws, in FLY_TIME with power2.inOut; halfway its z-index changes and it comes back down under the deck with power2.out.

Back from below

The last card goes to the top of the z-index, starts at yPercent 120 with 8 degrees and rises to zero; the old top card goes back to its tilt.

The arrow

Two quickTo calls of FOLLOW_TIME bring it after the pointer; it comes in with back.out(2), and the mark inside turns 180 degrees around its own centre when moving from one half to the other.

Light that follows

A ticker reads the rotation and lift of each card and moves its blurred shadow and its sheen: the more it tilts or flies, the further the shadow goes and the more the sheen shows.

Values to change

NameFileDefaultWhat it changes
FLY_TIMEscript.js0.38Seconds of each half of the throw: up, then under the deck.
FLY_HEIGHTscript.js140How high the card is thrown, in percent of its height.
FLY_TILTscript.js9Extra degrees the card turns while it flies.
STRAIGHTEN_TIMEscript.js0.35Seconds the next card takes to straighten.
DEPTH_SCALEscript.js0.012How much smaller each card is than the one above.
FOLLOW_TIMEscript.js0.15Seconds the arrow takes to catch the pointer.
AUTOPLAY_PAUSEscript.js2.4Seconds between cards when the deck goes on its own.

Try them in the Playground

When to use it

For the testimonials section of a studio, an agency, a freelancer or a product: a few real quotes to leaf through one at a time, with more character than a carousel.

On phones

On a phone the deck is sized on the height too, the hints below go and the arrow stays only in the tour: tap the top or bottom half, or drag up or down by more than 30 pixels.

With reduced motion

No throws and no animated turns: the cards take their place at once, the new top card fades in and there is no arrow.

Pitfalls

  • The z-index changes halfway through the throw, when the card is out of the deck: changed before, the card would vanish behind the others before leaving.
  • A click during a throw finishes the previous one with progress(1), so the order of the deck never gets mixed up.
  • The initials in the circle are out of the flow (position: absolute; inset: 0 with flex centring): the circle never changes size and the initials stay centred.

Libraries

GSAP 3.15.0, Fraunces (font variabile) 5.3.0, Instrument Sans (font variabile) 5.3.0.

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

Testing

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