
The slide-to-confirm button
Buttons, Physics, Transitions
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.
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>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
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 siteThe 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.
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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
INTERVAL | script.js | 4.6 | The seconds each review stays in front when the carousel turns by itself. |
DEPTH | script.js | 13 | How many pixels each card behind peeks above the one in front. |
SHRINK | script.js | 0.055 | How much smaller each card behind is (0.055 = 5.5%). |
BOUNCE | script.js | 0.62 | The spring of the cards that step forward: lower bounces more, 1 does not pass its place. |
FOLD | script.js | 38 | The degrees the card folds as it goes over the pile. |
THROW | script.js | 0.26 | How far to drag, as a share of the card's width, before it goes. |
BLUR | script.js | 22 | The frost of the glass, in pixels. |
AUTOPLAY | script.js | true | The carousel turns by itself (it waits while the pointer is over 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.
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.
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.
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.
Tested on 7 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.