
The inchworm menu
Menus, Hover, Transitions
A review card on the landing page of an invented dealer and workshop, Brackmoor Motors: an abstract avatar, Verified owner with a tick that draws itself, five stars filling with a glint, the made-up car and the text. Below, «Was this review helpful?» with Yes and No: a vote fills the button from the point you pressed, the thumb nods on a spring, the counter rolls like an odometer (49 becomes 50, both digits turning) and the question slides away for a thank you with a tick, while a light sweeps across the card.
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 Helpful vote" 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 thumbs up Helpful vote and the rolling counter</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 customer review on the landing page of Brackmoor Motors, an invented dealer and workshop: below the review,
"Was this helpful?" with Yes and No; the counters roll like an odometer and the card says thank you -->
<article class="review" data-review aria-labelledby="rv-name">
<span class="review__edge" aria-hidden="true"></span>
<span class="review__sheen" aria-hidden="true" data-sheen></span>
<header class="review__head">
<span class="avatar" aria-hidden="true">
<svg viewBox="0 0 40 40">
<defs>
<linearGradient id="av-a" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#cfdcff"/><stop offset="1" stop-color="#7f9cf0"/></linearGradient>
<linearGradient id="av-b" x1="0" y1="1" x2="1" y2="0"><stop offset="0" stop-color="#2346b8"/><stop offset="1" stop-color="#4f74ea"/></linearGradient>
</defs>
<rect width="40" height="40" rx="12" fill="url(#av-a)"/>
<path class="avatar__arc" d="M-2 30 C 10 18, 24 16, 42 22 L42 42 L-2 42 Z" fill="url(#av-b)"/>
<circle class="avatar__sun" cx="27" cy="13" r="5" fill="#fff" fill-opacity=".85"/>
</svg>
</span>
<span class="review__who">
<span class="review__name" id="rv-name">Megan Holloway</span>
<span class="review__meta">
<span class="badge">
<svg viewBox="0 0 16 16" aria-hidden="true"><path class="badge__ring" d="M8 1.6l1.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.4l-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" d="M5.4 8.2l1.8 1.8 3.4-3.6"/></svg>
Verified owner
</span>
<span class="review__dot">·</span>
<span>2 weeks ago</span>
</span>
</span>
</header>
<div class="review__rate">
<span class="stars" aria-label="Rated 5 out of 5" data-stars></span>
<span class="review__car">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3.2 12.6V10.4l1.6-3.6a1.6 1.6 0 0 1 1.5-1h7.4a1.6 1.6 0 0 1 1.5 1l1.6 3.6v2.2a.8.8 0 0 1-.8.8H4a.8.8 0 0 1-.8-.8z"/><path d="M3.4 10.4h13.2"/><circle cx="6.4" cy="13.6" r="1.4"/><circle cx="13.6" cy="13.6" r="1.4"/></svg>
Ostrel Tourer Hybrid · 2022
</span>
</div>
<h2 class="review__title">Straight answers and a spotless handover</h2>
<p class="review__text">Booked a 40,000 mile service and a brake check. Tom walked me through the worn pads with photos, quoted before touching anything, and the car came back washed and ready a day early.</p>
<footer class="review__foot">
<div class="ask" aria-live="polite">
<span class="ask__line ask__q" data-ask-q>Was this review helpful?</span>
<span class="ask__line ask__thanks" data-ask-thanks aria-hidden="true">
<svg viewBox="0 0 20 20" aria-hidden="true"><circle class="ask__ring" cx="10" cy="10" r="8"/><path class="ask__tick" d="M6.4 10.3l2.4 2.4 4.8-5"/></svg>
<span data-thanks-text>Thanks for voting</span>
</span>
</div>
<div class="votes" role="group" aria-label="Was this review helpful?">
<button class="vote vote--yes" type="button" aria-pressed="false" data-vote="yes">
<span class="vote__fill" aria-hidden="true"></span>
<svg class="vote__burst" viewBox="0 0 60 60" aria-hidden="true"><path d="M30 6v6M47 13l-4 4M54 30h-6M13 13l4 4M6 30h6M47 47l-4-4M13 47l4-4"/></svg>
<svg class="vote__icon" viewBox="0 0 24 24" aria-hidden="true"><g class="vote__thumb"><path class="vote__hand" d="M7.5 10.6l3.3-5.8a1.6 1.6 0 0 1 2.9 1.2l-.8 3.9h4.8a2 2 0 0 1 2 2.3l-1 5.9a2 2 0 0 1-2 1.7H7.5z"/><path class="vote__cuff" d="M4.6 10.6h2.9v9.2H4.6a.9.9 0 0 1-.9-.9v-7.4a.9.9 0 0 1 .9-.9z"/></g></svg>
<span class="vote__label">Yes</span>
<span class="roll vote__count" data-roll="yes"></span>
</button>
<button class="vote vote--no" type="button" aria-pressed="false" data-vote="no">
<span class="vote__fill" aria-hidden="true"></span>
<svg class="vote__icon" viewBox="0 0 24 24" aria-hidden="true"><g class="vote__thumb vote__thumb--down"><path class="vote__hand" d="M7.5 10.6l3.3-5.8a1.6 1.6 0 0 1 2.9 1.2l-.8 3.9h4.8a2 2 0 0 1 2 2.3l-1 5.9a2 2 0 0 1-2 1.7H7.5z"/><path class="vote__cuff" d="M4.6 10.6h2.9v9.2H4.6a.9.9 0 0 1-.9-.9v-7.4a.9.9 0 0 1 .9-.9z"/></g></svg>
<span class="vote__label">No</span>
<span class="roll vote__count" data-roll="no"></span>
</button>
</div>
</footer>
<p class="review__sum"><span class="roll" data-roll="sum"></span> <span data-sum-word>drivers found this helpful</span></p>
</article>
<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>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.
32 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 “Review card with Helpful vote” from Animorio and fit it into my siteEach digit is a column with a strip of twenty digits, 0 to 9 twice, moved with yPercent (one step is 5%). Going up past 9 the strip carries on into the second copy, going down below 0 it starts from the second copy: so 49 becomes 50 with the units turning forward, and at the end the strip quietly jumps back to the first copy. The digits that change start staggered from the right (ROLL_STAGGER) with back.out (SPRING); a gradient mask fades top and bottom.
Inside each button a gradient layer has clip-path: circle(0%) centred on the point pressed, as a percentage of the button; a vote takes it to 150% in FILL_TIME seconds. Taking the vote back closes the circle towards the same point. The active button widens its label with font-stretch on the Mona Sans wdth axis.
The icon runs a two-step timeline: in 0.16 seconds it lifts, tilts 16 degrees and grows 12%, then comes back with elastic.out. Meanwhile seven SVG strokes open in a ring with scale and stroke-dashoffset. The thumbs down is the same drawing turned 180 degrees in CSS while GSAP moves its container, so the two transforms do not cancel each other.
The question and the thank you share a 20 pixel line with overflow hidden: the question leaves with yPercent -100 and the thank you rises from +100 with back.out; ring and tick draw with a stroke-dasharray as long as getTotalLength(). A slanted gradient blade sweeps the card with xPercent, and the edge, a mask with mask-composite, follows the pointer through two quickTo on the --mx and --my variables.
A drawn pointer glides over the text, presses Yes, changes its mind and presses No, takes the vote back, votes Yes again and leaves, taking the vote back for the next round. Positions are read by functions inside the tweens, so they follow the card even when the window changes. At the first real mouse move, tap or key the pilot stops.
| Name | File | Default | What it changes |
|---|---|---|---|
YES_START | script.js | 49 | Yes votes before yours. |
NO_START | script.js | 3 | No votes before yours. |
ROLL_TIME | script.js | 0.7 | Seconds for a digit to roll into place. |
ROLL_STAGGER | script.js | 0.07 | Seconds between one digit and the next as they roll. |
SPRING | script.js | 1.6 | How far the digits and the thumb overshoot before settling (0 none). |
FILL_TIME | script.js | 0.5 | Seconds for the colour to fill the pressed button. |
SPEED | script.js | 1 | Pilot speed. |
LOOP | script.js | true | The pilot starts over. |
In the reviews on the landing page of a car dealer, a workshop, an online shop or an app: under every opinion, to lift the most useful ones and make voters feel heard. It also works at the bottom of a help page or an article, with the same counter.
The same animation with adapted sizes: the card is 92% of the screen wide, the margins also follow the window height and, when the room next to the buttons is narrow, the question becomes «Helpful?» and the thank you «Thanks!». A finger votes just like the mouse.
Nothing moves: the stars are already full, numbers change without rolling, the button colour and the thank you arrive at once, without the light sweeping the card; the pilot's pointer is hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.4 KB; the libraries: GSAP 28 KB.
Tested on 9 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.