Skip to content
animorio
IT
All components

Glass reviews carousel

Carousels, Transitions, PhysicsGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The reviews of Quillmark, a docs app for product teams, as five frosted glass cards stacked one behind the other over a violet and cyan glow. Drag the front card away (or the arrows, or the keys): it flies to the side, folds as it passes over the pile and goes to the back, the others step forward on a spring, the stars of the new card fill one after another, the score counts up, the name and the role rise and the dash of the active card grows long.

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>
<!--
  "Glass reviews carousel" 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 reviews carousel with the glass cards that stack</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">
    <!-- the reviews of Quillmark, a docs app for product teams: five frosted glass cards stacked one behind the other
         over a soft violet and cyan glow. Drag the front card away (or the arrows, or the arrow keys): it leaves,
         folds as it tucks in at the back of the pile, the others step forward on a spring, the stars of the new card
         fill one after another, the name and the role rise, and the dash of the active card grows long -->
    <section class="reviews" data-reviews aria-roledescription="carousel" aria-label="What teams say about Quillmark">
      <div class="reviews__aura" aria-hidden="true"><span class="aura aura--violet" data-aura></span><span class="aura aura--cyan" data-aura></span></div>
      <div class="deck" data-deck tabindex="0" aria-label="Reviews, use the arrow keys">
      <article class="card" data-card data-score="5" aria-roledescription="slide" aria-label="Review 1 of 5">
        <span class="card__shade" data-shade aria-hidden="true"></span>
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="card__mark" data-mark viewBox="0 0 48 40" aria-hidden="true"><path d="M4 38V22.5C4 11.6 9.6 4.6 19.4 2l1.8 4.4C15.3 8.5 12.6 12.4 12.3 18H20v20zm24 0V22.5C28 11.6 33.6 4.6 43.4 2l1.8 4.4C39.3 8.5 36.6 12.4 36.3 18H44v20z"/></svg>
        <div class="card__body" data-body>
          <header class="card__top">
            <span class="stars" role="img" aria-label="5 out of 5 stars"><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span></span>
            <span class="card__score" data-score-text>5.0</span>
            <span class="card__verified" data-rise><svg viewBox="0 0 16 16" aria-hidden="true"><path class="card__seal" d="M8 1.4l1.6 1.2 2 .1.6 1.9 1.5 1.3-.6 1.9.6 1.9-1.5 1.3-.6 1.9-2 .1L8 14.6l-1.6-1.2-2-.1-.6-1.9-1.5-1.3.6-1.9-.6-1.9 1.5-1.3.6-1.9 2-.1z"/><path class="card__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>Verified</span>
          </header>
          <blockquote class="card__quote" data-quote>We moved four years of specs into Quillmark over one weekend. Search finally finds things, and the editor never gets in the way.</blockquote>
          <footer class="card__who">
            <span class="avatar avatar--a" data-avatar aria-hidden="true"><span>MO</span></span>
            <span class="card__names">
              <span class="card__mask"><span class="card__name" data-rise>Maya Okafor</span></span>
              <span class="card__mask"><span class="card__role" data-rise>Head of Product · Brightline</span></span>
            </span>
          </footer>
        </div>
      </article>
      <article class="card" data-card data-score="5" aria-roledescription="slide" aria-label="Review 2 of 5">
        <span class="card__shade" data-shade aria-hidden="true"></span>
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="card__mark" data-mark viewBox="0 0 48 40" aria-hidden="true"><path d="M4 38V22.5C4 11.6 9.6 4.6 19.4 2l1.8 4.4C15.3 8.5 12.6 12.4 12.3 18H20v20zm24 0V22.5C28 11.6 33.6 4.6 43.4 2l1.8 4.4C39.3 8.5 36.6 12.4 36.3 18H44v20z"/></svg>
        <div class="card__body" data-body>
          <header class="card__top">
            <span class="stars" role="img" aria-label="5 out of 5 stars"><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span></span>
            <span class="card__score" data-score-text>5.0</span>
            <span class="card__verified" data-rise><svg viewBox="0 0 16 16" aria-hidden="true"><path class="card__seal" d="M8 1.4l1.6 1.2 2 .1.6 1.9 1.5 1.3-.6 1.9.6 1.9-1.5 1.3-.6 1.9-2 .1L8 14.6l-1.6-1.2-2-.1-.6-1.9-1.5-1.3.6-1.9-.6-1.9 1.5-1.3.6-1.9 2-.1z"/><path class="card__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>Verified</span>
          </header>
          <blockquote class="card__quote" data-quote>Comments in the margin replaced half our meetings. Engineers read the spec once, ask right there, and ship.</blockquote>
          <footer class="card__who">
            <span class="avatar avatar--b" data-avatar aria-hidden="true"><span>DR</span></span>
            <span class="card__names">
              <span class="card__mask"><span class="card__name" data-rise>Daniel Reyes</span></span>
              <span class="card__mask"><span class="card__role" data-rise>Staff Engineer · Tallwater</span></span>
            </span>
          </footer>
        </div>
      </article>
      <article class="card" data-card data-score="4.5" aria-roledescription="slide" aria-label="Review 3 of 5">
        <span class="card__shade" data-shade aria-hidden="true"></span>
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="card__mark" data-mark viewBox="0 0 48 40" aria-hidden="true"><path d="M4 38V22.5C4 11.6 9.6 4.6 19.4 2l1.8 4.4C15.3 8.5 12.6 12.4 12.3 18H20v20zm24 0V22.5C28 11.6 33.6 4.6 43.4 2l1.8 4.4C39.3 8.5 36.6 12.4 36.3 18H44v20z"/></svg>
        <div class="card__body" data-body>
          <header class="card__top">
            <span class="stars" role="img" aria-label="4.5 out of 5 stars"><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span></span>
            <span class="card__score" data-score-text>4.5</span>
            <span class="card__verified" data-rise><svg viewBox="0 0 16 16" aria-hidden="true"><path class="card__seal" d="M8 1.4l1.6 1.2 2 .1.6 1.9 1.5 1.3-.6 1.9.6 1.9-1.5 1.3-.6 1.9-2 .1L8 14.6l-1.6-1.2-2-.1-.6-1.9-1.5-1.3.6-1.9-.6-1.9 1.5-1.3.6-1.9 2-.1z"/><path class="card__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>Verified</span>
          </header>
          <blockquote class="card__quote" data-quote>A template for every ritual we have: planning, retros, incident reviews. A new hire is up to speed in an afternoon.</blockquote>
          <footer class="card__who">
            <span class="avatar avatar--c" data-avatar aria-hidden="true"><span>PN</span></span>
            <span class="card__names">
              <span class="card__mask"><span class="card__name" data-rise>Priya Natarajan</span></span>
              <span class="card__mask"><span class="card__role" data-rise>Engineering Manager · Fernhill</span></span>
            </span>
          </footer>
        </div>
      </article>
      <article class="card" data-card data-score="5" aria-roledescription="slide" aria-label="Review 4 of 5">
        <span class="card__shade" data-shade aria-hidden="true"></span>
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="card__mark" data-mark viewBox="0 0 48 40" aria-hidden="true"><path d="M4 38V22.5C4 11.6 9.6 4.6 19.4 2l1.8 4.4C15.3 8.5 12.6 12.4 12.3 18H20v20zm24 0V22.5C28 11.6 33.6 4.6 43.4 2l1.8 4.4C39.3 8.5 36.6 12.4 36.3 18H44v20z"/></svg>
        <div class="card__body" data-body>
          <header class="card__top">
            <span class="stars" role="img" aria-label="5 out of 5 stars"><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span></span>
            <span class="card__score" data-score-text>5.0</span>
            <span class="card__verified" data-rise><svg viewBox="0 0 16 16" aria-hidden="true"><path class="card__seal" d="M8 1.4l1.6 1.2 2 .1.6 1.9 1.5 1.3-.6 1.9.6 1.9-1.5 1.3-.6 1.9-2 .1L8 14.6l-1.6-1.2-2-.1-.6-1.9-1.5-1.3.6-1.9-.6-1.9 1.5-1.3.6-1.9 2-.1z"/><path class="card__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>Verified</span>
          </header>
          <blockquote class="card__quote" data-quote>It feels fast in a way most tools forgot. The page is open before I have finished the shortcut.</blockquote>
          <footer class="card__who">
            <span class="avatar avatar--d" data-avatar aria-hidden="true"><span>JW</span></span>
            <span class="card__names">
              <span class="card__mask"><span class="card__name" data-rise>Jonas Weber</span></span>
              <span class="card__mask"><span class="card__role" data-rise>Product Designer · Kiln & Co</span></span>
            </span>
          </footer>
        </div>
      </article>
      <article class="card" data-card data-score="4.5" aria-roledescription="slide" aria-label="Review 5 of 5">
        <span class="card__shade" data-shade aria-hidden="true"></span>
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="card__mark" data-mark viewBox="0 0 48 40" aria-hidden="true"><path d="M4 38V22.5C4 11.6 9.6 4.6 19.4 2l1.8 4.4C15.3 8.5 12.6 12.4 12.3 18H20v20zm24 0V22.5C28 11.6 33.6 4.6 43.4 2l1.8 4.4C39.3 8.5 36.6 12.4 36.3 18H44v20z"/></svg>
        <div class="card__body" data-body>
          <header class="card__top">
            <span class="stars" role="img" aria-label="4.5 out of 5 stars"><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span><span class="star"><svg class="star__base" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg><span class="star__clip" data-fill><svg class="star__fill" viewBox="0 0 20 20"><path d="M10 1.6l2.47 5.3 5.8.68-4.29 3.95 1.15 5.73L10 14.4l-5.13 2.86 1.15-5.73L1.73 7.58l5.8-.68z"/></svg></span></span></span>
            <span class="card__score" data-score-text>4.5</span>
            <span class="card__verified" data-rise><svg viewBox="0 0 16 16" aria-hidden="true"><path class="card__seal" d="M8 1.4l1.6 1.2 2 .1.6 1.9 1.5 1.3-.6 1.9.6 1.9-1.5 1.3-.6 1.9-2 .1L8 14.6l-1.6-1.2-2-.1-.6-1.9-1.5-1.3.6-1.9-.6-1.9 1.5-1.3.6-1.9 2-.1z"/><path class="card__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>Verified</span>
          </header>
          <blockquote class="card__quote" data-quote>Permissions are simple at last. Legal gets its space, clients get one page, and nobody sees the drafts.</blockquote>
          <footer class="card__who">
            <span class="avatar avatar--e" data-avatar aria-hidden="true"><span>SM</span></span>
            <span class="card__names">
              <span class="card__mask"><span class="card__name" data-rise>Sofia Marchetti</span></span>
              <span class="card__mask"><span class="card__role" data-rise>Operations Lead · Oread</span></span>
            </span>
          </footer>
        </div>
      </article>
      </div>
      <nav class="controls" aria-label="Reviews">
        <button class="arrow" type="button" data-prev aria-label="Previous review">
          <span class="arrow__face"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M12 5l-5 5 5 5"/></svg></span>
        </button>
        <span class="dashes" data-dashes role="tablist" aria-label="Choose a review">
          <button class="dash" type="button" role="tab" aria-label="Review 1"><span class="dash__fill"></span></button>
          <button class="dash" type="button" role="tab" aria-label="Review 2"><span class="dash__fill"></span></button>
          <button class="dash" type="button" role="tab" aria-label="Review 3"><span class="dash__fill"></span></button>
          <button class="dash" type="button" role="tab" aria-label="Review 4"><span class="dash__fill"></span></button>
          <button class="dash" type="button" role="tab" aria-label="Review 5"><span class="dash__fill"></span></button>
        </span>
        <button class="arrow" type="button" data-next aria-label="Next review">
          <span class="arrow__face"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M8 5l5 5-5 5"/></svg></span>
        </button>
      </nav>
      <p class="sr" aria-live="polite" data-live></p>
    </section>
  </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.

47 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 “Glass reviews carousel” 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 a black page, behind a deck of cards, a soft violet and cyan glow breathes. The cards are frosted glass: they blur the glow behind them, have a one pixel edge brighter on the top left, a fine grain and a band of light that slides with the hand; the ones behind peek a few pixels above, smaller and darker, and fade out lower down so they never draw lines through the glass in front. The front card has five gold stars, the score, a Verified tag with a drawn seal, the review and at the bottom the initials avatar with the name and the role. Take it with a finger or the mouse: it gives a little, follows the hand leaning, and the card behind already comes closer and gets lighter. Let go past the mark (or with a quick flick) it flies to the side, rises over the pile folding backwards and tucks in at the back, while the others step forward on a spring that passes its place by a pixel. On the new card the review comes into focus, the avatar swells, the stars fill one after another with a small hop (the half star too), the score counts up from 0.0 and the name and the role rise out of their masks. Under the deck the dash of the active card grows long and, when the carousel turns by itself, fills with the time. The back arrow brings the card from the bottom of the pile: it comes out folded from above, drops to the side and comes back to the front. With the mouse over it the carousel waits and the front card leans towards the pointer.

How it works

The cards in one cell

The five cards share one grid cell, so the deck is as tall as the tallest card, and GSAP stacks them with x, y, scale and the rotations: the card at depth d rises by d times DEPTH pixels and shrinks by d times SHRINK, with its origin at the top. The z-index changes halfway through the flight, when the card is to the side and nothing covers it.

The glass and its depth

Each card has a backdrop-filter with blur and saturate over the glow, a one pixel edge made of a masked gradient (mask-composite exclude), an SVG grain in overlay and a band of light driven by the --sx variable. The cards behind have a dark veil (0.42 opacity per level) and a mask that fades them out under the edge that peeks, animated through the --keep variable: without it their edges showed through the glass in front.

The drag

With pointer events the card follows the hand in x, rises a fifth of the y and leans (rotation and rotationY in proportion to the move); the speed is read and damped at every move. Past THROW times the width, or with a flick faster than 0.55 pixels per millisecond, it goes; otherwise it springs back. While it is pulled, the card behind rises and gets lighter in proportion.

The fold at the back of the pile

A timeline takes the card to the side leaning in the plane (rotation and skewY), changes the z-index, lifts it over the pile with rotationX at -FOLD degrees (the perspective is in the transform) and lays it flat in its place at the back with a hand written spring; the others step forward on the same spring with a 50 millisecond stagger, front first.

The new card shows itself

Each star has a gold copy inside a mask 0% wide: the masks open one after another (up to 50% for the half star) while the star hops in scale, the score counts with a tween on a number, the name and the role rise out of overflow hidden masks and the quote goes from blurred to sharp. The active dash grows on a spring and its inner line fills in INTERVAL seconds.

Values to change

NameFileDefaultWhat it changes
INTERVALscript.js4.6The seconds each review stays in front when the carousel turns by itself.
DEPTHscript.js13How many pixels each card behind peeks above the one in front.
SHRINKscript.js0.055How much smaller each card behind is (0.055 = 5.5%).
BOUNCEscript.js0.62The spring of the cards that step forward: lower bounces more, 1 does not pass its place.
FOLDscript.js38The degrees the card folds as it goes over the pile.
THROWscript.js0.26How far to drag, as a share of the card's width, before it goes.
BLURscript.js22The frost of the glass, in pixels.
AUTOPLAYscript.jstrueThe carousel turns by itself (it waits while the pointer is over it).

Try them in the Playground

When to use it

On the landing page of a piece of software, an app or a subscription service, in the customer reviews section: it holds five reviews in the space of one, flips through like a deck under the finger and gives depth and material to a part of the page that is usually flat. It also works for the reviews of hotel guests, shop customers or event attendees, changing the words and the colours of the glow.

On phones

The same animation with adapted sizes: the deck is 88% of the screen wide, the type, the stars, the avatar and the spacing are sized on the height too, and the pixels the cards peek by shrink with the width. A finger drags the card (touch-action pan-y lets the page scroll vertically), and the arrows and the dashes are big enough to tap.

With reduced motion

Nothing moves: the front card fades out and the new one appears in its place with the stars already full, the score written and the name still; the deck stays stacked, the glow is still and the carousel still turns, with the drag, the arrows and the keys too.

Pitfalls

  • With see-through glass the edges of the cards behind showed through the front card, like crooked lines: each card behind has a mask that fades it out just below the edge that peeks, animated through the --keep variable together with the dark veil.
  • A click that came during the entrance went into the queue and nobody read it: the entrance now ends with the same function as the transitions, which looks at the queue.
  • Flying almost a whole card to the side took it off the phone's screen: it goes only 40% of its width and the rotationY fold does the rest.
  • Changing the z-index at the start of the flight made the card vanish behind the others at once: it changes at 0.3 seconds, when the card is already to the side.
  • With a large rotationY during the flight the glass's backdrop-filter showed a hard rectangle of the glow behind: in the flight to the side the card leans only in the plane (rotation and skewY), and in 3D there is only the rotationX fold and the small lean towards the pointer.
  • The function that shows the new card switched its content on as soon as it was built, not when it started: the card coming back from the bottom showed empty stars during the flight. Now switching on is a set inside its timeline.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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