Skip to content
animorio
IT
Back to the library

Club numbers counter

Text, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 7.3 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The numbers page of the archive of a made-up rowing club, minimal on an almost black blue: in the opening the two lines of the title swap sizes as you scroll, then every big number rolls into place like a mechanical counter, figure by figure from left to right, with a touch of motion blur and a one-pixel settle, a thin line draws itself underneath and the caption words rise out of a blur, the last ones crowding in.

Rebuilt from scratch studying memorial.fcporto.pt by Significa: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Club numbers counter" 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 Halden Rowing Club Archive, in numbers</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the numbers page of a made-up rowing club archive. The two lines of the title swap sizes as you scroll; then
       every big number rolls into place digit by digit like a mechanical counter, a thin baseline draws itself under
       it and the caption words rise out of a blur, the last ones crowding in. Hover or tap a number to roll it again. -->
  <svg class="filtri" width="0" height="0" aria-hidden="true" focusable="false"><defs data-filtri></defs></svg>

  <main>
    <section class="apertura" data-apertura>
      <div class="apertura__palco">
        <p class="occhiello" data-club>The Halden Rowing Club Archive</p>
        <h1 class="titolo" data-titolo>
          <span class="titolo__riga" data-riga-a>Kept by the river,</span>
          <span class="titolo__riga" data-riga-b>one oar at a time</span>
        </h1>
        <svg class="fiume" viewBox="0 0 600 24" preserveAspectRatio="none" aria-hidden="true">
          <path data-fiume d="M0 12 L600 12" />
        </svg>
        <p class="invito" data-invito>
          <span>Scroll</span>
          <svg viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1 V14 M1.5 9.5 L6 14 L10.5 9.5" /></svg>
        </p>
      </div>
    </section>

    <section class="numeri" data-numeri>
      <div class="numeri__palco">
        <div class="cifra__corpo" data-cifra>
          <p class="etichetta" data-etichetta>Founded</p>
          <p class="numero" data-numero="1891" aria-label="1891"></p>
          <div class="base" aria-hidden="true"><span class="base__linea" data-linea></span><span class="base__tacca" data-tacca></span></div>
          <p class="didascalia" data-parole>The year twelve rowers built a boathouse of tarred pine on the Halden.</p>
        </div>
        <div class="cifra__corpo" data-cifra>
          <p class="etichetta" data-etichetta>Regattas rowed</p>
          <p class="numero" data-numero="312" aria-label="312"></p>
          <div class="base" aria-hidden="true"><span class="base__linea" data-linea></span><span class="base__tacca" data-tacca></span></div>
          <p class="didascalia" data-parole>From the cold spring sprints to the long autumn race against the tide.</p>
        </div>
        <div class="cifra__corpo" data-cifra>
          <p class="etichetta" data-etichetta>Objects in the archive</p>
          <p class="numero" data-numero="1,048" aria-label="1,048"></p>
          <div class="base" aria-hidden="true"><span class="base__linea" data-linea></span><span class="base__tacca" data-tacca></span></div>
          <p class="didascalia" data-parole>Oars, pennants, medals and race cards, each one with a label and a drawer.</p>
        </div>
      </div>
    </section>

    <section class="chiusura" data-chiusura>
      <p class="chiusura__frase" data-parole data-espo="0.7">Every oar has a name.</p>
      <p class="occhiello occhiello--piede">Open on Saturdays, by the water</p>
    </section>
  </main>

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

26 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 “Club numbers counter” 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 an almost black blue, with a barely visible blue glow, at the top there is the name of the archive of a made-up rowing club, The Halden Rowing Club Archive, and under it the title on two lines in a light serif, Kept by the river, one oar at a time, the second line in italics and small; further down a pale blue thread that ripples like water and the invitation to scroll. The words of the title arrive rising out of a blur. As you scroll, the page holds the opening still and the two lines swap sizes: the first shrinks towards its bottom edge and dims a little, the second grows from its top edge; the thread ripples more while the page moves. Then the page holds again and three numbers come, one at a time in the same place: 1891, the year the club was born, 312 regattas, 1,048 objects in the archive. Every number rolls like a mechanical counter: each figure is a column from 0 to 9 that runs to its digit, the right-hand one a moment after the left one, with a touch of motion blur along the roll, and when it stops it goes one pixel past its mark and comes back. Meanwhile a thin line draws itself underneath, with an upright notch at its end, and the caption words rise one after the other out of a blur, the first ones spaced out and the last ones crowding in. Scroll on and the number leaves upwards into a blur, and only then does the next one come in, starting from zero; scroll back up and the previous one returns and rolls again. Hover or tap a number and the counter rolls one more full turn and comes back to the same figures. At the bottom, Every oar has a name, its words rising the same way.

How it works

Every figure is a column

The number is split into figures and each figure becomes a window one em tall, with a mask fading its top and bottom edges, holding a column with the digits 0 to 9 twice. To show the digit d the column moves by -5 per cent times d, because every digit is a twentieth of the column. Commas and points stay still, in a softer colour.

The turn of the counter

The three numbers sit on top of each other on a second sticky stage, 420 vh tall: the scroll picks which one shows (the middle one gets a little more of the way), the old one leaves upwards in four tenths of a second, blurring, and the new one starts 36 hundredths later. When the number comes in every column runs from 0 to its digit in 1.25 seconds plus 0.05 for every column, starting 0.05 seconds after the one on its left, with power3.out: the figures stop from left to right. Every column has its own SVG filter blurring only vertically, set every frame from the real speed of the column; once it stops it goes one pixel past its mark and comes back.

The words that crowd in

The caption is split into words. Each one rises from 125 per cent of its height, transparent and blurred by 12 pixels, in 1.25 seconds with power4.out; the delay is the index to the power of 0.8 times 0.125 seconds, so the first words start spaced out and the last ones crowd in.

The two lines that swap

The opening is 140 vh tall with a sticky stage. A timeline tied to the scroll takes the first line to scale 0.56 and opacity 0.6 with its origin at the bottom, and the second from scale 0.56 and opacity 0.6 to full size with its origin at the top, with power1.inOut: the two lines stay touching while they swap.

Values to change

NameFileDefaultWhat it changes
CLUBscript.jsThe Halden Rowing Club ArchiveThe name at the top.
ROLLscript.js1.25The seconds a column takes to roll to its digit.
STAGGERscript.js0.125The seconds between one caption word and the next.
EXPOscript.js0.8Below 1 the last words crowd in, at 1 they come evenly.
BLURscript.js12How blurred the words are when they start to rise, in pixels.
SHRINKscript.js0.56How small a title line gets when the other one takes its place.
MOSSOscript.js1The motion blur along the roll of the digits: 0 is none.
BOUNCEscript.js1How many pixels a column goes past its mark before it settles.

Try them in the Playground

When to use it

For the numbers section of a museum, an archive, a sports club, a foundation or a company about page: a few real numbers, big, each with its own sentence, read one at a time as you scroll.

On phones

The same animation with adapted sizes: the numbers and the title are sized on the height of the screen too, the caption wraps more often and a tap on the number rolls the counter again.

With reduced motion

No rolling and no rising words: the numbers already sit on their digits and fade in with the caption; the two title lines keep their size and only swap brightness; the water thread stays still.

Pitfalls

  • The column holds the digits 0 to 9 twice: that way the extra turn on hover runs to the same digit in the second half and then jumps back to the first, invisibly.
  • The motion blur is one SVG filter per column, blurring only vertically: a CSS filter blur would blur sideways too. At rest the filter is removed, otherwise the digits stay slightly soft.
  • GSAP combines yPercent for the roll and y in pixels for the settle in the same transform: no need for two elements.
  • Never once: true on a timeline with a ScrollTrigger: opening the page already scrolled down would freeze everything. Here the numbers have paused timelines, started by a single ScrollTrigger that picks which one to show.
  • Never two readable numbers in the same place: the new one comes in only once the old one has nearly gone, and if you scroll back halfway the panel that was leaving stops and starts again.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Newsreader (font variabile) 5.3.0, Inter (font variabile) 5.3.0.

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

Testing

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