
Long shadow letters
Text, Scroll, 3D
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.
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>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
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 siteThe 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.
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.
“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.
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 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.
| Name | File | Default | What it changes |
|---|---|---|---|
RIDE | script.js | 1 | How much scroll the whole year takes: 2 is twice as long. |
DISTANCE | script.js | 1847 | Kilometres run in the year (up to 9999). |
RUNS | script.js | 212 | Runs in the year. |
HOURS | script.js | 168 | Hours on the feet. |
SPINS | script.js | 1 | Extra full turns of the digit bands before they land. |
WIDEN | script.js | 1 | How far the best month widens on the font axes (0 none, 1 all the way). |
SCRUB | script.js | 0.6 | How far the card lags behind the scroll, in seconds. |
LEAN | script.js | 1 | How much the card leans with the speed of the scroll (0 none). |
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.
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.
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.
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.
Tested on 12 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.