Skip to content
animorio
IT
Back to the library

Garage reviews

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 7.1 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The reviews section of a made-up garage, Greyfern Motor Works, on a sticky stage: as you scroll the average counts up to 4.8 while five stars are drawn stroke by stroke and fill with amber, the last one only partly; the bars of the distribution grow one after another, a thin rule draws across and three review cards rise in a cascade and settle with a slight overshoot. The first carries a Verified pill whose tick draws itself. Everything follows the scroll both ways.

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>
<!--
  "Garage reviews" 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 garage reviews that build themselves as you scroll</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>
  <!-- the reviews section of a made-up local garage, Greyfern Motor Works. A sticky stage: scrolling, the average counts
       up to 4.8 while five stars are drawn stroke by stroke and fill (the last one only partly), the bars of the
       distribution grow one after another, and three review cards rise in a cascade and settle with a slight overshoot.
       The first card carries a Verified pill whose tick draws itself -->
  <section class="corsa" data-corsa>
    <div class="palco">
      <article class="pannello" data-pannello aria-label="Greyfern Motor Works, customer reviews">
        <span class="pannello__luce" data-luce aria-hidden="true"></span>

        <header class="testa">
          <span class="marchio">
            <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.4"/><circle cx="10" cy="10" r="2.2"/><path d="M10 3.6v2.6M10 13.8v2.6M3.6 10h2.6M13.8 10h2.6"/></svg>
            <span>Greyfern <em>Motor Works</em></span>
          </span>
          <span class="testa__nota" data-nota>Most recent first</span>
        </header>

        <div class="voto">
          <div class="voto__grande">
            <span class="voto__numero" data-numero>0.0</span>
            <div class="stelle" data-stelle aria-hidden="true"></div>
            <span class="voto__base" data-base>Based on 0 reviews</span>
          </div>
          <ul class="barre" data-barre aria-label="Rating distribution"></ul>
        </div>

        <span class="riga" data-riga aria-hidden="true"></span>

        <div class="card" data-card></div>
      </article>
      <p class="invito" data-invito aria-hidden="true">Scroll to read what drivers say</p>
    </div>
  </section>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

23 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 “Garage reviews” 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 warm white ground sits the reviews panel of Greyfern Motor Works, a made-up garage: the brand with a drawn wheel, a Most recent first pill, the big average with five stars and the review count, the five distribution bars beside it, and below three faint placeholders waiting for three customer cards with initials, date, five small stars and one line. The panel stays still while you scroll: the average counts from 0.0 to 4.8 and the review count rises with it; each star first draws its amber outline, then fills with a small hop up to its share of the average (the fifth to 80 percent); the bars grow one after another with their percentages counting and a bright cap on their tip; a warm light sweeps the panel once; a thin rule draws across; then the cards rise in a cascade from 34 pixels below and settle slightly past their place. A Verified visit pill reaches the first one and its tick draws itself. On hover the cards take an amber edge and a longer shadow. On the phone there are two cards, one under the other.

How it works

One still stage, one number

The section is 320vh tall with a sticky stage one screen high inside. A single scrubbed ScrollTrigger takes a number from 0 to 1 and one function draws everything from it: each piece has its own stretch of the ride, so it all runs backwards when you scroll up.

Stars in three layers

Each star is an SVG with three copies of the same path: the grey ground, the amber fill clipped by a clipPath whose width is its share of the average, and the outline with pathLength 1 and a dashoffset going from 1 to 0.

Bars and numbers

The bars are scaleX with a left origin, a twentieth of the ride apart; the percentages and the average count with font-variant-numeric: tabular-nums.

The cascade with an overshoot

The cards rise on a hand-written back curve, 1 + (s+1)(t−1)³ + s(t−1)², which goes a little past 1 and comes back: s is the OVERSHOOT knob.

Values to change

NameFileDefaultWhat it changes
RATINGscript.js4.8The average shown, out of 5.
REVIEWSscript.js412How many reviews the average is based on.
RIDEscript.js1How much scroll the whole section takes: 2 is twice as long.
SCRUBscript.js0.6How far the panel lags behind the scroll, in seconds.
RISEscript.js34How many pixels the review cards rise from.
OVERSHOOTscript.js0.7How far the cards go past their place before settling (0 none).
STAGGERscript.js0.09The share of the scroll between one card and the next.
SHINEscript.js0.8How bright the light sweeping the panel is (0 none).

Try them in the Playground

When to use it

For the reviews section of a local business (a garage, a car dealer, a restaurant, a shop) or a product page: as you scroll the average arrives, then the distribution, then the customers’ own words.

On phones

The same animation with adapted sizes: the panel is sized on the height too and everything inside follows its width; the cards become two, one under the other, and fit whole in the box.

With reduced motion

No motion: the average and the bars follow the scroll without hops or shifts, and the cards and the pill only fade in.

Pitfalls

  • Each star’s clipPath needs its own id, or every star takes the first one’s cut.
  • One ScrollTrigger and one function drawing from a number: with a ScrollTrigger per piece the stretches overlap and stay half done when you scroll back up.
  • The stars are SVG, never characters: on an iPhone the star character can turn into an emoji.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 7.1 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

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