Skip to content
animorio
IT
Back to the library

Barber price list

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

Scroll inside the preview

The price list section of a made-up barber shop, Ashcombe Barbers, in the clean style of the interface pieces: the stage stays still and, as you scroll, the second line of the title, nothing extra., widens on the width axis of the variable type and goes from grey to black, while the price list card composes itself row by row. On each treatment a soft light comes on, the name rises from its mask and gains weight, the dots run from the name to the price, the price counts up to its figure and the duration slides in; then the row settles by a pixel. The clock hand in the header turns with the scroll and at the end the Book a chair button rises with its words widening.

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>
<!--
  "Barber price list" 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>Ashcombe Barbers, price list</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 price list section of a made-up barber shop, Ashcombe Barbers. A sticky stage: as you scroll, the second line
       of the title widens and darkens on the width axis, and the price list card composes itself row by row: the name of
       the treatment rises from its mask and gains weight, the dotted leader runs from the name to the price, the price
       counts up and the duration slides in. The clock hand in the header turns with the scroll. At the end the Book a
       chair pill rises and widens, and the walk-in line comes in. Scrolling back takes the list apart again -->
  <section class="corsa" data-corsa>
    <div class="palco">
      <p class="occhiello">
        <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="5" cy="11.4" r="2.1"/><circle cx="11" cy="11.4" r="2.1"/><path d="M6.6 9.9 11.6 2.2M9.4 9.9 4.4 2.2"/></svg>
        Ashcombe Barbers
      </p>
      <h2 class="titolo">Cut, shave,<br><span class="titolo__due" data-due>nothing extra.</span></h2>

      <figure class="listino" data-listino>
        <div class="listino__testa">
          <span class="listino__nome">Price list</span>
          <span class="orario">
            <svg class="orario__ora" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.2"/><path d="M8 4.6V8l2.2 1.4" data-lancetta/></svg>
            Tue to Sat, 9 to 7
          </span>
        </div>
        <ul class="righe">
          <li class="riga" data-riga data-prezzo="32"><span class="riga__nome"><span class="riga__in" data-nome>Haircut</span></span><span class="riga__durata" data-durata>40 min</span><span class="riga__punti" data-punti></span><span class="riga__prezzo"><span class="valuta">£</span><span data-cifra>32</span></span></li>
          <li class="riga" data-riga data-prezzo="36"><span class="riga__nome"><span class="riga__in" data-nome>Skin fade</span></span><span class="riga__durata" data-durata>50 min</span><span class="riga__punti" data-punti></span><span class="riga__prezzo"><span class="valuta">£</span><span data-cifra>36</span></span></li>
          <li class="riga" data-riga data-prezzo="18"><span class="riga__nome"><span class="riga__in" data-nome>Beard trim</span></span><span class="riga__durata" data-durata>20 min</span><span class="riga__punti" data-punti></span><span class="riga__prezzo"><span class="valuta">£</span><span data-cifra>18</span></span></li>
          <li class="riga" data-riga data-prezzo="29"><span class="riga__nome"><span class="riga__in" data-nome>Hot towel shave</span></span><span class="riga__durata" data-durata>35 min</span><span class="riga__punti" data-punti></span><span class="riga__prezzo"><span class="valuta">£</span><span data-cifra>29</span></span></li>
          <li class="riga" data-riga data-prezzo="45"><span class="riga__nome"><span class="riga__in" data-nome>Cut and beard</span></span><span class="riga__durata" data-durata>1 hour</span><span class="riga__punti" data-punti></span><span class="riga__prezzo"><span class="valuta">£</span><span data-cifra>45</span></span></li>
        </ul>
        <div class="listino__piede">
          <a class="prenota" href="#" data-prenota><span class="prenota__fondo" aria-hidden="true"></span><span class="prenota__testo" data-prenota-testo>Book a chair</span>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9M9 4.5 12.5 8 9 11.5"/></svg></a>
          <span class="passanti" data-passanti>Walk-ins welcome until half past six.</span>
        </div>
      </figure>
    </div>
  </section>
  <footer class="piede">Ashcombe Barbers is a made-up shop.</footer>

  <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.

44 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 “Barber price list” 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 price list section of Ashcombe Barbers, a made-up barber shop: at the top a white pill with drawn scissors and the name, then the two-line title, Cut, shave, in black and nothing extra. in narrow light grey, and below the price list card, with Price list, a small clock and Tue to Sat, 9 to 7 in its header. At first the card is empty. As you scroll, the second title line widens and turns black; below, one row at a time, a faint reddish light comes on, the name of the treatment (Haircut, Skin fade, Beard trim, Hot towel shave, Cut and beard) rises from below its mask and goes from thin to full, a row of dots runs right to the price, the price appears counting from zero to its figure in pounds and the duration slides in next to the name. Each finished row lifts by a pixel and settles, and the light goes. The clock hand turns as you scroll. At the end the dark Book a chair button rises with its arrow, its words widening, and on the right Walk-ins welcome until half past six comes in. Scrolling back takes the list apart.

How it works

One timeline, tied to the scroll

The whole section is a paused GSAP timeline, with one stretch for each row of the list, and ScrollTrigger drives it back and forth with scrub while the stage stays still with position: sticky. Scrolling back rewinds it on its own.

The variable type moved through CSS variables

Width and weight are two CSS variables (--w and --g) inside font-variation-settings: GSAP animates the variables and the CSS hands them to the wdth and wght axes of Mona Sans. So the title widens and the names gain weight without swapping typeface.

The dots and the counting price

The dots are a dotted background repeated horizontally, stretched with scaleX from the left. The price is an object GSAP takes from zero to the figure, written rounded at every step: with scrub it counts backwards too.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole list takes: 2 is twice as long.
SCRUBscript.js0.6How far the list lags behind the scroll, in seconds.
TITLE_WIDTHscript.js116How wide the second title line gets on the width axis (75 to 125).
NAME_WEIGHTscript.js640The weight each treatment name reaches.
SETTLEscript.js1How many pixels each row lifts before it settles.
GLOWscript.js1How visible the light under the row being composed is (0 none).
COUNTscript.js11: the prices count up from zero; 0: they just appear.

Try them in the Playground

When to use it

For the page of a barber, a hairdresser, a beautician or any small shop with a short price list: whoever scrolls reads the services one at a time, with prices and times, and reaches the booking button.

On phones

The same animation with adapted measures: title, card and rows are sized on the height too and all fit in the stage; the walk-in line hides below 480 pixels and the button stays centred.

With reduced motion

No motion: the list is already composed, with the prices, the wide title and the button, and it appears with a fade.

Pitfalls

  • GSAP does not read CSS variables inside colours it animates: the :root colours are read once with getComputedStyle and passed already resolved.
  • With Mona Sans no tabular-nums on the prices: the tabular zero has a slash.

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 5.3 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

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