
The send button
Buttons, Transitions, SVG
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.
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 · 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>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
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 siteThe 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.
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.
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 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 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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
DURATION | script.js | 4.6 | How many seconds each story stays: its bar at the top fills in this time. |
HOLD | script.js | 0.22 | How many seconds a press must last to pause instead of going on. |
SPRING | script.js | 1 | How springy the words and the cover are: 0.4 calm, 2 very bouncy. |
BPM | script.js | 96 | The beat the song bars pulse to and the opening circles breathe with. |
HOURS | script.js | 1284 | The hours listened that roll in on the second story (the days below are worked out by themselves). |
TOP_SHARE | script.js | 38 | The top genre’s share, in percent: the number and the first piece of the bar. |
AUTO | script.js | true | After the last story starts again from the first; with false it stops on the last. |
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.
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.
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.
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.
Tested on 13 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.