Skip to content
animorio
IT
All components

Year in review stories

Stories, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The end-of-year recap of a made-up music app, Cadra, told as stories inside a sober phone on a black page, in the premium style of Dribbble shots. Five screens, each with its own colour and its own way in: «Your 2026 in music» opening like an iris, the 1,284 hours listened rolling in like an odometer, the top genre as a soft shape filling with liquid, the artist of the year with an abstract cover and a record that slides out and spins, the song on repeat with bars pulsing to the beat. At the top the story bars fill with time; a tap on the right goes on, on the left goes back, holding pauses. Left alone, it runs through the stories and starts again.

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>
<!--
  "Year in review stories" 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>Your 2026 in music, Cadra</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>
  <main class="stage">
    <!-- the year in review of a music app told as stories: five screens, each with its own colour and its own way in;
         bars at the top that fill, a tap on the right goes on, on the left goes back, a long press pauses -->
    <section class="wr" aria-label="Your 2026 in music, Cadra" data-wr>
      <div class="phone" data-phone>
        <div class="screen" data-screen>
          <div class="slides" data-slides>

            <!-- intro -->
            <article class="sl sl--intro" aria-label="Your 2026 in music" data-sl>
              <div class="sl__bg"></div>
              <svg class="rings" viewBox="0 0 220 220" aria-hidden="true">
                <circle class="rings__c" cx="110" cy="110" r="30" data-ring/>
                <circle class="rings__c" cx="110" cy="110" r="52" data-ring/>
                <circle class="rings__c" cx="110" cy="110" r="74" data-ring/>
                <circle class="rings__c" cx="110" cy="110" r="96" data-ring/>
                <g data-orbit><circle class="rings__arc" cx="110" cy="110" r="74" pathLength="100"/></g>
                <circle class="rings__core" cx="110" cy="110" r="11" data-core/>
              </svg>
              <div class="sl__body sl__body--end">
                <p class="kick" data-in>Cadra Recap</p>
                <h2 class="intro__title">
                  <span class="mask"><span class="intro__l" data-line>Your</span></span>
                  <span class="mask"><span class="intro__l intro__year" data-line data-year>2026</span></span>
                  <span class="mask"><span class="intro__l" data-line>in music</span></span>
                </h2>
                <p class="note" data-in>A year of you, in five stories.</p>
                <p class="intro__go" data-in>Tap to start<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M4.5 2.5L8 6l-3.5 3.5"/></svg></p>
              </div>
            </article>

            <!-- hours -->
            <article class="sl sl--hours" aria-label="You listened for 1,284 hours" data-sl>
              <div class="sl__bg"></div>
              <div class="sl__body">
                <p class="kick" data-in>Time listened</p>
                <p class="lead" data-in>You pressed play for</p>
                <p class="odo" data-odo></p>
                <p class="unit" data-in>hours</p>
                <p class="note" data-in>That's over <b data-days>53</b> days of sound.</p>
                <div class="months" aria-hidden="true">
                  <div class="months__bars" data-months>
                    <i style="--h:.46"></i><i style="--h:.38"></i><i style="--h:.52"></i><i style="--h:.49"></i><i style="--h:.61"></i><i style="--h:.7"></i><i style="--h:.78"></i><i class="is-peak" style="--h:1"></i><i style="--h:.66"></i><i style="--h:.58"></i><i style="--h:.63"></i><i style="--h:.84"></i>
                  </div>
                  <p class="months__cap" data-in><span>Loudest month</span><b>August</b></p>
                </div>
              </div>
            </article>

            <!-- genre -->
            <article class="sl sl--genre" aria-label="Your top genre: dream pop, 38 percent" data-sl>
              <div class="sl__bg"></div>
              <div class="sl__body">
                <p class="kick" data-in>Top genre</p>
                <div class="blob" data-blob>
                  <svg viewBox="0 0 200 200" aria-hidden="true">
                    <defs>
                      <clipPath id="cd-blob"><path d="M100 12C146 10 186 42 188 90C190 140 158 184 106 188C54 192 14 160 12 106C10 56 50 14 100 12Z"/></clipPath>
                      <linearGradient id="cd-liquid" x1="0" y1="0" x2="0" y2="1">
                        <stop offset="0" stop-color="var(--genre-hi)"/>
                        <stop offset="1" stop-color="var(--genre)"/>
                      </linearGradient>
                    </defs>
                    <path class="blob__glass" d="M100 12C146 10 186 42 188 90C190 140 158 184 106 188C54 192 14 160 12 106C10 56 50 14 100 12Z"/>
                    <g clip-path="url(#cd-blob)">
                      <g data-level transform="translate(0 210)">
                        <path class="blob__back" data-wave-b d="M-100 0Q-75 -7 -50 0T0 0T50 0T100 0T150 0T200 0T250 0T300 0V240H-100Z"/>
                        <path class="blob__front" data-wave-a d="M-100 4Q-75 -3 -50 4T0 4T50 4T100 4T150 4T200 4T250 4T300 4V240H-100Z" fill="url(#cd-liquid)"/>
                      </g>
                      <ellipse class="blob__shine" cx="70" cy="58" rx="30" ry="14" transform="rotate(-24 70 58)"/>
                    </g>
                    <path class="blob__rim" d="M100 12C146 10 186 42 188 90C190 140 158 184 106 188C54 192 14 160 12 106C10 56 50 14 100 12Z"/>
                  </svg>
                  <span class="blob__pct"><span><b data-pct>38</b><small>%</small></span></span>
                </div>
                <h3 class="big" data-in>Dream pop</h3>
                <p class="note" data-in>of everything you played</p>
                <div class="stack" aria-hidden="true">
                  <span class="stack__bar"><i class="stack__s stack__s--a" data-seg style="--w:38%"></i><i class="stack__s stack__s--b" data-seg style="--w:24%"></i><i class="stack__s stack__s--c" data-seg style="--w:15%"></i></span>
                  <p class="stack__cap" data-in>Then indie folk and ambient.</p>
                </div>
              </div>
            </article>

            <!-- artist -->
            <article class="sl sl--artist" aria-label="Artist of the year: Ines Morrow" data-sl>
              <div class="sl__bg"></div>
              <div class="sl__body">
                <p class="kick" data-in>Artist of the year</p>
                <div class="art" data-art>
                  <div class="vinyl" data-vinyl><i class="vinyl__label"></i></div>
                  <div class="cover" data-cover>
                    <svg viewBox="0 0 100 100" aria-hidden="true">
                      <circle class="cover__sun" cx="62" cy="40" r="22"/>
                      <circle class="cover__moon" cx="40" cy="58" r="22"/>
                      <path class="cover__lines" d="M0 74H100M0 80H100M0 86H100M0 92H100"/>
                      <text class="cover__word" x="8" y="15">IM</text>
                    </svg>
                    <i class="cover__sheen" data-sheen></i>
                  </div>
                </div>
                <h3 class="big" data-in>Ines Morrow</h3>
                <p class="note" data-in>212 hours &middot; 2,906 plays</p>
                <p class="badge" data-in>Top 0.5% of listeners</p>
              </div>
            </article>

            <!-- song -->
            <article class="sl sl--song" aria-label="Your song on repeat: Velvet Static by Pale Harbour, played 318 times" data-sl>
              <div class="blinds" aria-hidden="true" data-blinds><i></i><i></i><i></i><i></i><i></i><i></i></div>
              <div class="sl__bg" data-songbg></div>
              <div class="sl__body">
                <p class="kick" data-in>On repeat</p>
                <div class="eq" aria-hidden="true">
                  <i class="eq__glow" data-eqglow></i>
                  <div class="eq__bars" data-eq></div>
                </div>
                <h3 class="big" data-in>Velvet Static</h3>
                <p class="note" data-in>Pale Harbour</p>
                <div class="scrub" data-in aria-hidden="true">
                  <span class="scrub__line"><i data-scrub></i></span>
                  <span class="scrub__t"><b data-time>1:12</b><b>3:42</b></span>
                </div>
                <p class="badge" data-in>Played 318 times</p>
              </div>
            </article>
          </div>

          <div class="grain" aria-hidden="true"></div>

          <header class="chrome">
            <div class="status" aria-hidden="true">
              <b>9:41</b>
              <span class="status__icons">
                <svg viewBox="0 0 18 12"><rect x="1" y="7" width="3" height="4" rx=".8"/><rect x="5.5" y="5" width="3" height="6" rx=".8"/><rect x="10" y="3" width="3" height="8" rx=".8"/><rect x="14.5" y="1" width="3" height="10" rx=".8" opacity=".4"/></svg>
                <svg viewBox="0 0 26 12"><rect x=".7" y=".7" width="21.6" height="10.6" rx="3.2" fill="none" stroke="currentColor" stroke-opacity=".45" stroke-width="1.2"/><rect x="2.4" y="2.4" width="15" height="7.2" rx="1.8"/><path d="M23.8 4.2v3.6c.9-.3 1.4-1 1.4-1.8s-.5-1.5-1.4-1.8z" opacity=".45"/></svg>
              </span>
            </div>
            <div class="bars" aria-hidden="true" data-bars></div>
            <div class="head">
              <span class="head__logo" aria-hidden="true">
                <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="11"/><path d="M7.5 13.6c1.4-3.4 3.2-3.4 4.5 0s3.1 3.4 4.5 0"/></svg>
              </span>
              <span class="head__who"><b>Cadra</b><span>2026 Recap</span></span>
              <span class="head__paused" data-paused>
                <svg viewBox="0 0 12 12" aria-hidden="true"><rect x="2.5" y="2" width="2.4" height="8" rx="1"/><rect x="7.1" y="2" width="2.4" height="8" rx="1"/></svg>Paused
              </span>
            </div>
          </header>

          <button class="tap tap--prev" type="button" aria-label="Previous story" data-prev>
            <span class="tap__hint" data-hint><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M14.5 6.5L9 12l5.5 5.5"/></svg></span>
          </button>
          <button class="tap tap--next" type="button" aria-label="Next story" data-next>
            <span class="tap__hint" data-hint><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9.5 6.5L15 12l-5.5 5.5"/></svg></span>
          </button>
        </div>
        <i class="phone__island" aria-hidden="true"></i>
        <i class="phone__key phone__key--a" aria-hidden="true"></i>
        <i class="phone__key phone__key--b" aria-hidden="true"></i>
      </div>
      <p class="sr" aria-live="polite" data-live></p>
    </section>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

58 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 “Year in review stories” 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 black page, in the middle, there is a sober phone with the island at the top and the time 9:41. Inside, Cadra’s year in review: at the top five thin bars, the current story’s one filling with white over time, and below them the brand with «2026 Recap». The first story, violet, opens like an iris from the centre: thin circles widening around a violet disc that breathes with the beat, an arc turning in orbit, and «Your 2026 in music» with its lines rising out of their mask and 2026 widening on the wdth axis. The second, amber, rises from below pushing the first away: the digits of 1,284 roll like an odometer, the rightmost turning more than the others, and land with a one-pixel settle; below, the twelve months’ bars grow one after another with August lit. The third, teal, comes in with a wipe from the right: a soft glass shape fills with liquid, two waves running opposite ways while 38% counts up, then «Dream pop» and the genre bar splitting in three. The fourth, pink, arrives from close up and blurred and comes into focus: Ines Morrow’s abstract cover straightens on a spring, a sheen crosses it and the record slides out sideways and spins. The fifth, lime, comes down in staggered vertical blinds: twenty-two bars pulse to a 96 bpm beat with a glow breathing beneath, «Velvet Static», the song bar moving with the timer and «Played 318 times». A tap on the right goes to the next story, on the left to the one before (with a small glass circle and the arrow flashing on the side tapped); holding the screen pulls it back a little, everything stops and «Paused» appears; letting go starts it again with a bounce. Untouched, the stories run by themselves and start again after the last.

How it works

A screen measured by itself

The phone is min(640px, 100vh) times 0.49 wide, capped at 100vw, with aspect-ratio 0.49; the screen is a size container (container-type: size) and everything inside is in cqw and cqh, so the same stories fit the phone’s box and grow on a computer.

Stories stacked

The five stories are absolute layers. show() brings the new one on top (z-index 2), leaves the old one beneath and hides it only once the entrance is done, so every transition sees both stories. A tap halfway pushes the running entrance to its end with progress(1) before starting the new one.

Five different ways in

A list of functions, one per story: an iris with clip-path circle, a push from below with yPercent and the old story stepping back, a wipe with clip-path inset (from the right side when going back too), a zoom with scale and blur, and for the last one six strips coming down staggered with scaleY before the light and words appear.

The odometer of the hours

The number is written from HOURS with toLocaleString; each digit is a column holding 0-9 three times. GSAP takes each strip to yPercent minus (digit plus 10 or 20) over 30, with more turns for the right column, then a settle of a third of a point forward and back.

The liquid and the bars to the beat

The genre shape is an SVG clipPath: inside, a group moved in y (the level) with two waves periodic every 100 units looping in opposite directions. The song bars are drawn by gsap.ticker only while the fifth story is shown: a pulse decaying on every BPM beat plus a wave of each bar’s own.

Tap, press, pause

Two real buttons cover the left third and the right two thirds. On pointerdown a gsap.delayedCall of HOLD seconds starts: if it fires it is a pause (bar, entrance and the story’s loops stopped, «Paused», the screen stepping back), and letting go resumes; otherwise the release is a tap. From the keyboard, the buttons, the arrows and P.

Values to change

NameFileDefaultWhat it changes
DURATIONscript.js4.6How many seconds each story stays: its bar at the top fills in this time.
HOLDscript.js0.22How many seconds a press must last to pause instead of going on.
SPRINGscript.js1How springy the words and the cover are: 0.4 calm, 2 very bouncy.
BPMscript.js96The beat the song bars pulse to and the opening circles breathe with.
HOURSscript.js1284The hours listened that roll in on the second story (the days below are worked out by themselves).
TOP_SHAREscript.js38The top genre’s share, in percent: the number and the first piece of the bar.
AUTOscript.jstrueAfter the last story starts again from the first; with false it stops on the last.

Try them in the Playground

When to use it

For an app’s end-of-year recap (music, podcasts, sport, reading, a bank), to tell a user’s numbers in a few seconds, or as a model for any story viewer with bars at the top, taps on the sides and hold to pause.

On phones

The same animations: the phone takes the box’s height and every size on the screen follows its width; the taps are the stories’ own (right on, left back, long press to pause) and the side arrows show with the mouse over them or right after a tap.

With reduced motion

Nothing moves: the stories swap with a fade, the hours, the liquid, the cover with its record and the song bars are already in their final state and still; only the bars at the top keep filling, because they tell the time.

Pitfalls

  • With text-shadow on the hours, each odometer column’s faded mask also cut the shadow and light rectangles showed behind the digits: the glow goes on the container with filter: drop-shadow, after the mask.
  • The % sign aligned with align-self in a flex container went to the top of the whole shape, not next to the number: number and % sit in one span, the % raised with vertical-align.
  • Tapping halfway through an entrance left the previous story visible under the new one: before each change the running entrance is pushed to its end with progress(1), which also runs its call that hides the old one.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.

Testing

Tested on 13 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 components