Skip to content
animorio
IT
All components

Review card with reply

Cards, Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 8.9 KBGSAP 28 KBFreeDownload the zip

A verified review card on the product page of Kilnwell, an invented ceramics shop, in a minimal premium style: the five stars fill with gold one after another while a glint of light runs through them, the text opens line by line, the Verified purchase badge draws its tick and a real photo of the mug sits in small. Helpful counts the vote with a nod of the thumb. Press «Reply from the shop» and the shop's answer comes out from under the card like a sheet folded in two: the first panel swings down from behind the card, the second opens from the crease, light and shadow move across the panels and the sheet lands with a small bounce.

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>
<!--
  "Review card with reply" 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>The review card with the shop's reply folding out from under it</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- a verified review on the product page of Kilnwell, an invented ceramics shop. The stars fill with a glint,
         the text opens line by line; "Reply from the shop" unfolds the shop's answer from under the card like a
         folded sheet of paper, in two panels, and it settles with a small bounce -->
    <div class="fit" data-fit>
      <div class="group" data-group>
        <aside class="reply" data-reply aria-hidden="true" id="shop-reply">
          <div class="fold fold--a" data-fold-a>
            <div class="fold__face">
              <header class="reply__head">
                <svg class="reply__mark" viewBox="0 0 28 28" aria-hidden="true">
                  <rect x="0.5" y="0.5" width="27" height="27" rx="8" class="reply__mark-bg"/>
                  <path d="M8 19.5c0-5.2 2.7-9.5 6-9.5s6 4.3 6 9.5" class="reply__mark-arch"/>
                  <path d="M6.5 19.5h15" class="reply__mark-floor"/>
                  <path d="M14 14.2c-.9 1-1.3 1.9-1.3 2.8a1.3 1.3 0 0 0 2.6 0c0-.9-.4-1.8-1.3-2.8z" class="reply__mark-flame"/>
                </svg>
                <span class="reply__who"><strong>Kilnwell</strong> replied</span>
                <span class="reply__when">1 day ago</span>
              </header>
              <p class="reply__line">Thank you, Mara. Every glaze is fired by hand,</p>
            </div>
            <span class="fold__shade" data-shade-a></span>
            <div class="fold fold--b" data-fold-b>
              <div class="fold__face">
                <p class="reply__line">so no two mugs pool quite the same way.</p>
                <p class="reply__sign">Enjoy the slow mornings <span>· Ines, studio</span></p>
              </div>
              <span class="fold__shade" data-shade-b></span>
            </div>
          </div>
        </aside>

        <article class="review" data-review>
          <span class="review__edge" aria-hidden="true"></span>
          <span class="review__sheen" data-sheen aria-hidden="true"></span>
          <header class="review__head" data-part>
            <span class="avatar" aria-hidden="true">MR</span>
            <span class="review__who">
              <span class="review__name">Mara Reyes</span>
              <span class="badge">
                <svg viewBox="0 0 16 16" aria-hidden="true"><path class="badge__ring" d="M8 1.5l1.6 1.2 2-.1.6 1.9 1.6 1.2-.6 1.9.6 1.9-1.6 1.2-.6 1.9-2-.1L8 14.5l-1.6-1.2-2 .1-.6-1.9-1.6-1.2.6-1.9-.6-1.9 1.6-1.2.6-1.9 2 .1z"/><path class="badge__tick" data-tick d="M5.4 8.2l1.8 1.8 3.4-3.6"/></svg>
                Verified purchase
              </span>
            </span>
            <span class="review__date">Nov 9</span>
          </header>

          <div class="review__rate" data-part>
            <span class="stars" data-stars role="img" aria-label="5 out of 5 stars"></span>
            <span class="review__score">5.0</span>
          </div>

          <div class="product" data-part>
            <span class="product__photo"><img src="tazza.webp" alt="" width="1024" height="683" data-photo></span>
            <span class="product__text">
              <span class="product__name">Ash glaze mug</span>
              <span class="product__meta">Stoneware · 350 ml · Fog</span>
            </span>
          </div>

          <h2 class="review__title" data-part>Heavier than it looks, in the best way</h2>
          <p class="review__text">
            <span class="line"><span data-line>The glaze pools darker at the rim,</span></span>
            <span class="line"><span data-line>just like in the photos. It keeps my</span></span>
            <span class="line"><span data-line>coffee warm through a whole call.</span></span>
          </p>

          <footer class="review__foot" data-part>
            <button class="helpful" type="button" aria-pressed="false" data-helpful>
              <svg class="helpful__icon" viewBox="0 0 20 20" aria-hidden="true" data-thumb><path d="M6.5 9v8.2H3.8a.8.8 0 0 1-.8-.8V9.8a.8.8 0 0 1 .8-.8zM6.5 9l3-5.6c1.4 0 2.3 1.1 2 2.4L11 8.6h4.3a1.6 1.6 0 0 1 1.6 1.9l-1 5.3a1.8 1.8 0 0 1-1.8 1.4H6.5"/></svg>
              <span class="helpful__label">Helpful</span>
              <span class="helpful__count" aria-live="polite"><span data-count>12</span></span>
            </button>
            <button class="toggle" type="button" aria-expanded="false" aria-controls="shop-reply" data-toggle data-autoclic>
              <span class="toggle__words" data-toggle-words>Reply from the shop</span>
              <svg class="toggle__chev" viewBox="0 0 16 16" aria-hidden="true" data-chev><path d="M4 6.2l4 4 4-4"/></svg>
            </button>
          </footer>
        </article>
      </div>
    </div>
    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></svg>
  </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.

42 values to change

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 “Review card with reply” 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

A white card with soft layered shadows and a one pixel edge that catches a warm light where the pointer goes. On entry the parts rise staggered, the five stars fill with gold from the left one after another while a pale glint runs through them all, then the row settles with a small elastic bounce; the Verified purchase tick draws itself, the mug photo tightens like a lens finding focus and the three lines of the review rise each from its own slot. Helpful lights up in terracotta, the thumb lifts and drops back on a spring and the number slides from 12 to 13. «Reply from the shop» turns into «Hide reply», the chevron flips with a bounce and Kilnwell's answer comes out from under the card: a paper coloured sheet folded in two that opens in 3D, first the top panel swinging down from behind the card, then the lower one opening from the crease, each with a shadow that lightens as it straightens; the card rises just enough to keep everything centred, takes a little knock as the sheet lands and a blade of light crosses it. The small flame of the kiln mark breathes while the reply is open. Press again and the sheet folds back under the card.

How it works

The sheet in two panels

The reply is an aside behind the card (lower z-index), with perspective and the perspective origin at the top. The top panel has its transform-origin at the top and preserve-3d; the lower panel is its child, placed at top: 100% with its origin at the top, so it turns around the crease and is carried along when the first one turns. Closed: top at rotateX(-92deg), lower at 168deg.

The angles drive the shadow

GSAP animates an object holding the two angles; every frame drawFold puts them on the panels and works out the opacity of each panel's shade layer from its angle (the more tilted, the darker). The lower panel starts a third later than the first, and both land with back.out (BOUNCE), the bounce of a sheet settling.

The card makes room

The card and reply group moves up by half the sheet's height as it opens, so the whole stays centred; an outer wrapper is scaled by the script so that the card and the open sheet always fit the window, recalculated on resize.

The stars with one glint

A single SVG: five grey stars, and above them a group clipped by the five stars, inside which five gold rectangles grow in width one after another and a blade with a pale gradient slides from left to right through all of them.

Lines from a slot

Each line of the text is a block with overflow: hidden and a span inside rising from yPercent 110 to 0, staggered by LINE_GAP: each line seems to come out of a slot below the one before.

Values to change

NameFileDefaultWhat it changes
HELPFUL_STARTscript.js12How many people found the review helpful before you.
STAR_TIMEscript.js0.42Seconds for one star to fill with gold.
STAR_GAPscript.js0.11Seconds between one star and the next.
LINE_GAPscript.js0.12Seconds between one line of the review and the next.
UNFOLD_TIMEscript.js0.85Seconds for the reply to unfold.
BOUNCEscript.js1.4How far the sheet overshoots as it lands (0 none).
SPEEDscript.js12 = the pilot twice as fast, 0.5 = half.
LOOPscript.jstrueThe pilot plays the story again and again.

Try them in the Playground

When to use it

In the reviews on the product page of an online shop, a maker, a hotel or a restaurant: wherever the business answers its customers and the answer should be right there, at hand, without filling the page until it is asked for.

On phones

The same animation with adapted sizes: the script scales the card and the open sheet together so they fit the phone's box in height too, and the buttons work with a finger.

With reduced motion

No movement: the stars are already full, the card fades in, the reply fades in and out already open in its place and the Helpful number changes without sliding.

Pitfalls

  • The lower panel, a child of the first, must be in preserve-3d with it: without it, when the first one turns the second is flattened into its plane and the crease disappears.
  • Closed, the sheet at -92 degrees showed as a thin line under the card: below -88 degrees it is hidden with autoAlpha, and the top panel keeps 22 pixels hidden behind the card so that as it opens you never see where it is attached.
  • A GSAP scale on the star paths wiped their position transform and piled them up: the small settle is on the whole row, not on the stars.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 12 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 components