Skip to content
animorio
IT
Back to the library

Running year in review

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

Scroll inside the preview

The year in review of Kerbline, a made-up running app, in a dark phone card on warm paper, in a premium minimal style. As you scroll, the 1,847 kilometres compose like an odometer, every digit rolling up on its own band and settling, while the route of a run draws itself behind with the runner at its tip. Then the best month, “October”, widens letter by letter on the weight and width axes of the variable font, and the strip of months at the bottom, filling since January, lights its column. At the end the summary types itself and the “Share your year” button inflates under it.

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>
<!--
  "Running year in review" 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>Kerbline, your year in running</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>
  <!-- a made-up running app, Kerbline, and its year in review in one phone card. A sticky stage: scrolling, the total
       distance composes with its digits rolling up, the best month widens on the weight and width axes of the font,
       the strip of months at the bottom fills month by month, and the summary types itself above the share button -->
  <section class="corsa" data-corsa>
    <div class="palco" data-palco>
      <div class="ombra" data-ombra aria-hidden="true"></div>

      <article class="carta" data-carta aria-label="Kerbline, your 2025 in running">
        <div class="grana" aria-hidden="true"></div>
        <div class="alone" data-alone aria-hidden="true"></div>
        <svg class="traccia" viewBox="0 0 200 320" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
          <path data-traccia d="M-10 250 C 20 236 34 262 58 244 S 92 196 118 204 S 150 238 170 214 S 186 150 160 132 S 104 140 92 112 S 110 62 142 58 S 196 74 214 40"/>
          <circle data-corridore r="2.6" cx="-10" cy="250"/>
        </svg>
        <div class="riflesso" data-riflesso aria-hidden="true"></div>

        <header class="testa">
          <div class="marchio">
            <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 15.5 8.2 6l3.4 5.4L13.6 8 17 15.5"/></svg>
            <span>Kerbline</span>
          </div>
          <span class="anno">2025 in running</span>
        </header>

        <div class="scene">
          <section class="scena" data-scena>
            <p class="etichetta">Distance</p>
            <p class="numero" data-numero aria-label="1,847 kilometres"></p>
            <p class="unita">kilometres</p>
            <ul class="dati" data-dati>
              <li><b data-corse>212</b><span>runs</span></li>
              <li><b data-ore>168</b><span>hours</span></li>
              <li><b>5:27</b><span>avg pace</span></li>
            </ul>
          </section>

          <section class="scena" data-scena>
            <p class="etichetta">Your best month</p>
            <p class="parola" data-parola aria-label="October"></p>
            <div class="mese">
              <div class="mese__riga"><span>Distance</span><b data-mese-km>214 km</b></div>
              <div class="mese__riga"><span>Longest run</span><b>28.4 km</b></div>
              <div class="mese__riga"><span>Fastest 10K</span><b>41:12</b></div>
            </div>
          </section>

          <section class="scena" data-scena>
            <p class="etichetta">Your year</p>
            <p class="frase"><span data-frase></span><i class="cursore" data-cursore aria-hidden="true"></i></p>
            <button class="condividi" type="button" data-condividi>
              <span class="condividi__fondo" aria-hidden="true"></span>
              <span class="condividi__testo" data-testo-condividi>Share your year</span>
              <svg class="condividi__icona" data-icona viewBox="0 0 16 16" aria-hidden="true"><path d="M8 10.5V2.5M4.8 5.4 8 2.3l3.2 3.1M3 8.5v4.2h10V8.5"/></svg>
              <svg class="condividi__spunta" data-spunta viewBox="0 0 16 16" aria-hidden="true"><path d="M3.4 8.4 6.6 11.4 12.8 4.8"/></svg>
            </button>
          </section>
        </div>

        <footer class="mesi" data-mesi aria-label="Kilometres per month"></footer>
      </article>

      <p class="invito" data-invito>Scroll to replay your year</p>
    </div>
  </section>
  <footer class="piede">Figures are illustrative. Kerbline is a made-up app.</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.

39 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 “Running year in review” 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 background sits a dark phone card from Kerbline, a made-up running app, with its mark, a “2025 in running” tag and, at the bottom, a strip of twelve wells, one per month. As you scroll the stage stays put and the card moves from one chapter to the next. In the first, “Distance”, the four digits of 1,847 each roll up on their own band, the units one spinning most, and land with a small settle; below, runs and hours count up, and behind them the route of a run draws itself in a thin lime line with a dot at its tip. Meanwhile the months fill one after another like liquid. In the second chapter the best month, “October”, goes from thin and narrow to black and wide, letter after letter, and the other months of the strip step back while October rises and lights up. In the third the sentence “1,847 km, your longest year yet. October was the month you flew.” types itself with a caret and the “Share your year” button inflates below: on hover its label widens, pressed it sinks, clicked it becomes “Link copied” with a tick that draws itself. A light sweeps the glass of the card with the scroll, and the card leans slightly with the speed of scrolling.

How it works

One still stage and one number

The section is four screens tall and the stage inside is sticky at 100lvh. A single scrubbed ScrollTrigger takes one number from 0 to 1, and one function draws the whole card from it: chapters, digits, months, word, sentence and button follow the scroll both ways. Lenis smooths the scrolling and passes its velocity to the lean of the card.

The odometer

Every digit is a column of numbers one em tall inside a window with hidden overflow and a soft mask at top and bottom. The band holds a few whole turns from 0 to 9 and then the digits up to the right one: its translation in em goes from first to last with a cubic ease out and a small overshoot that settles. Digits on the right spin more, and start staggered.

The word on the axes

“October” is split into letters, each with its own font-variation-settings: weight goes from 200 to 860 and width from 75 to 125, the width overshooting slightly and coming back. Before starting, the word is measured at its widest and its size reduced just enough to fit the card, on resize too.

The months and the route

Each well of the strip holds a liquid with scaleY from the bottom, proportional to the month’s kilometres; months start one after another. The route is an SVG path with stroke-dasharray, and the dot at its tip takes its position from getPointAtLength.

The sentence and the button

The sentence types itself by cutting the text to a number of letters that depends on the scroll, its first part in green. The button comes in with a base that inflates in width and height with a small bounce; the click is a GSAP timeline that changes the label and draws the tick.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole year takes: 2 is twice as long.
DISTANCEscript.js1847Kilometres run in the year (up to 9999).
RUNSscript.js212Runs in the year.
HOURSscript.js168Hours on the feet.
SPINSscript.js1Extra full turns of the digit bands before they land.
WIDENscript.js1How far the best month widens on the font axes (0 none, 1 all the way).
SCRUBscript.js0.6How far the card lags behind the scroll, in seconds.
LEANscript.js1How much the card leans with the speed of the scroll (0 none).

Try them in the Playground

When to use it

For an app’s year in review (running, reading, music, savings), an end-of-season results page, the landing of a “year in review” feature, or a page that tells a few strong numbers one at a time before asking people to share.

On phones

The same animation with adapted sizes: the card is measured on width and height (min(360px, 86vw, 82vh times 0.6)) and everything inside is in card units, so it fits the 341 by 410 box. The best month is measured again on every resize.

With reduced motion

No spinning bands, no lean and no sweeping light: each third of the scroll shows a finished chapter (the number, the month already wide with full months, the whole sentence with the button), and chapters only fade into each other.

Pitfalls

  • cqw units used in the card’s own properties (radius, padding) do not refer to the card but to the viewport: the card is the container only for its children. For it the width lives in a CSS variable and radius and padding are calc(var(--w) * …).
  • A digit band with an overshoot goes past the last digit: add one more digit at the end, or for a moment the band shows empty space.
  • A word animated on the weight and width axes changes width while it moves: measure it at its widest, not at its start, or it leaves the card.
  • With scrub the card must be drawn from a single state: separate animations for each piece trip over each other when scrolling back.

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

Testing

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