Skip to content
animorio
IT
Back to the library

Reading year in review

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

Scroll inside the preview

The year in review of Pagewell, a made-up reading app, in a tall dark card shaped like a story. As you scroll, the four bars at the top fill one after another and the card turns four pages: the minutes read counting up while an amber ring closes and passes the notch of the goal, the genres as bars with their shares, the longest streak lighting up day by day in a grid, and the summary with three tiles and a button to share. Each page leaves upwards with a blur while the next one rises in, and when a page is complete a soft light sweeps the card.

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>
<!--
  "Reading 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>Pagewell, your year in reading</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 reading app, Pagewell, and its year in review. A sticky stage with one tall card: scrolling, the four
       story bars at the top fill one after another and the card builds four pages of the year, the minutes read with a
       ring that closes past the goal, the genres as bars, the longest streak lighting up in a grid of days, and the
       summary to share -->
  <section class="corsa" data-corsa>
    <div class="palco" data-palco>
      <div class="alone" data-alone aria-hidden="true"></div>

      <article class="carta" data-carta aria-label="Pagewell, your 2026 in reading">
        <div class="luce" data-luce aria-hidden="true"></div>
        <header class="testa">
          <div class="barre" data-barre aria-hidden="true">
            <span class="barra"><i></i></span><span class="barra"><i></i></span><span class="barra"><i></i></span><span class="barra"><i></i></span>
          </div>
          <div class="marchio">
            <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 4.5c2.6-.9 4.9-.6 7 1v10c-2.1-1.6-4.4-1.9-7-1z"/><path d="M17 4.5c-2.6-.9-4.9-.6-7 1v10c2.1-1.6 4.4-1.9 7-1z"/></svg>
            <span>Pagewell</span>
            <em>Your 2026</em>
          </div>
        </header>

        <div class="scene">
          <!-- the minutes -->
          <section class="scena" data-scena>
            <p class="etichetta">Time spent reading</p>
            <div class="anello">
              <svg viewBox="0 0 120 120" aria-hidden="true">
                <circle class="anello__fondo" cx="60" cy="60" r="52"/>
                <circle class="anello__arco" data-arco cx="60" cy="60" r="52"/>
                <circle class="anello__tacca" data-tacca cx="60" cy="60" r="52"/>
              </svg>
              <div class="anello__dentro">
                <b class="cifra" data-minuti>0</b>
                <span>minutes</span>
              </div>
            </div>
            <p class="nota" data-nota-minuti>Goal: 12,000 minutes</p>
          </section>

          <!-- the genres -->
          <section class="scena" data-scena>
            <p class="etichetta">What you read most</p>
            <ul class="generi" data-generi></ul>
            <p class="nota">Across <b data-libri-n>31</b> books</p>
          </section>

          <!-- the streak -->
          <section class="scena" data-scena>
            <p class="etichetta">Your longest streak</p>
            <p class="grande"><b class="cifra" data-serie>0</b> <span>days in a row</span></p>
            <div class="giorni" data-giorni aria-hidden="true"></div>
            <p class="nota">Sep 12 to Oct 22</p>
          </section>

          <!-- the summary -->
          <section class="scena scena--fine" data-scena>
            <p class="etichetta">Your year, in short</p>
            <div class="riassunto">
              <div class="tessera"><b data-r-libri>31</b><span>books</span></div>
              <div class="tessera"><b data-r-ore>238</b><span>hours</span></div>
              <div class="tessera"><b data-r-serie>41</b><span>day streak</span></div>
            </div>
            <p class="frase">A slow reader, in the best way. Most of it after 10 pm.</p>
            <button class="condividi" type="button" data-condividi>
              <span class="condividi__testo" data-condividi-testo>Share your year</span>
              <svg class="condividi__icona" viewBox="0 0 20 20" aria-hidden="true" data-condividi-icona><path d="M10 13V3.5M6.5 7 10 3.5 13.5 7"/><path d="M5 10.5v5h10v-5"/></svg>
              <svg class="condividi__spunta" viewBox="0 0 20 20" aria-hidden="true" data-spunta><path d="M5 10.5l3.2 3.2L15 7"/></svg>
            </button>
          </section>
        </div>
      </article>

      <p class="invito" data-invito>Scroll to unwrap your year</p>
    </div>
  </section>
  <footer class="piede">Figures are illustrative. Pagewell 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.

41 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 “Reading 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 an almost black background with an amber glow behind it there is a dark card as tall as an Instagram story: Pagewell, a made-up reading app, and its 2026 in review. At the top four thin bars like those of stories, below them the brand with the drawn open book and the Your 2026 pill. As you scroll, the first bar fills and the minutes read count up to 14,280 while an amber ring closes: it passes the small notch of the 12,000 minute goal, grows thicker and the note below says by how much the goal was passed. Then the page rises with a blur and the second comes in: the four most read genres grow as bars one after another, with their share counting to its number, the first one warmer. The third page lights up a grid of fourteen weeks day by day, the days read in a fuller or fainter amber and the 41 day streak with a warmer glow, while the big number counts the streak. The last page sets down three tiles, books, hours and streak, a line about the kind of reader and the Share your year button: pressing it squashes it, the label becomes Link copied and a tick draws itself. When a page is complete a soft light sweeps the card. Everything follows the scroll backwards too.

How it works

One ride, four pages

The section is 420vh tall with a sticky stage one screen high inside. A single ScrollTrigger with scrub takes a number from 0 to 1; each page owns a quarter of the ride: it comes in over the first 12 percent, builds until two thirds, holds, and leaves over the last 10 percent rising and blurring.

The story bars

Each bar is a span with a child going from scaleX 0 to 1 over its quarter of the ride: the bars say which page you are on without numbers.

The ring and the goal

The ring is an SVG circle with stroke-dasharray: the length is the share of the goal reached. A short notch at the top marks the goal, one full turn; once the minutes pass it the ring stays full, grows thicker and the note changes.

The grid of days

Ninety-eight days in a fourteen column grid. Each day has a fixed level from a seeded generator, and the streak is a block in the middle. The page progress lights the days in order, each with a small scale spring.

Sizes from the card

The card is a container: every size inside is in cqw, the card’s width. The card is sized on the screen height with min(380px, 90vw, 84vh × 0.62), so it fits whole even in the short phone frame.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole year takes: 2 is twice as long.
MINUTESscript.js14280Minutes read in the year.
GOALscript.js12000The yearly goal, marked by the notch on the ring.
STREAKscript.js41The longest streak, in days (at most 98).
BOOKSscript.js31Books finished.
SCRUBscript.js0.6How far the card lags behind the scroll, in seconds.
SHINEscript.js0.8How bright the light sweeping the card at the end of a page is (0 none).

Try them in the Playground

When to use it

For an app’s end of year recap, a dashboard’s monthly report or a launch page telling a product’s numbers: whoever scrolls turns the pages like a story and each number arrives on its own.

On phones

The same animation with adapted sizes: the card is sized on the screen height too and everything inside follows its width, so it fits whole in the phone frame.

With reduced motion

No motion: each quarter of the scroll shows a finished page, and the pages swap with a fade.

Pitfalls

  • With the blur filter always on the phone slows down: the blur is set only while a page comes in or leaves, and at rest the filter goes back to none.
  • Numbers count with font-variant-numeric: tabular-nums, otherwise the line jitters at every digit.
  • The light sweeping the card fires once per page: it re-arms only when you scroll back under two thirds of the page, otherwise with scrub it would fire on every frame.
  • The days generator has a fixed seed: with Math.random the grid would change on every visit and the poster would never be the same.

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