
The star rating
Ratings, SVG, Hover
The November budget card of a personal finance app, dark on black: a half ring is the whole month’s budget, the spent part draws itself on a spring in four tones of lime (rent, groceries, transport, fun) and a tick marks today. Point at a slice and it lifts with its shadow while the centre rolls to its figure; a tap opens the payments of that category underneath.
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>
<!--
"Monthly budget gauge" 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>The monthly budget gauge chart that opens into the expenses</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" data-stage>
<!-- the monthly budget card of an invented finance app: a half ring of the budget, the spent part split into four
categories that draw themselves on a spring, the mark of today on the ring, the money left rolling in the middle;
a slice lifts with its shadow when you point at it and a tap opens the payments of that category -->
<section class="budget" data-card aria-label="Tally monthly budget">
<span class="budget__sheen" aria-hidden="true"></span>
<header class="budget__head">
<div class="budget__title">
<svg class="budget__mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 17.5a7 7 0 0 1 14 0"></path><path d="M12 17.5 15.6 12"></path></svg>
<div>
<p class="budget__name">November budget</p>
<p class="budget__total">$3,200 planned</p>
</div>
</div>
<p class="budget__day"><span>Day 18</span> of 30</p>
</header>
<div class="gauge" data-gauge>
<svg class="gauge__svg" viewBox="0 0 240 136" aria-hidden="true">
<defs>
<filter id="lift" x="-30%" y="-30%" width="160%" height="170%">
<feDropShadow dx="0" dy="3.5" stdDeviation="3.2" flood-color="#000" flood-opacity="0.75"></feDropShadow>
</filter>
</defs>
<path class="gauge__track" data-track></path>
<path class="gauge__left" data-left></path>
<g data-glow class="gauge__glow"></g>
<g data-slices></g>
<g class="gauge__pace" data-pace>
<line data-pace-line></line>
<text data-pace-text text-anchor="middle">Today</text>
</g>
</svg>
<p class="gauge__end gauge__end--a">$0</p>
<p class="gauge__end gauge__end--b">$3,200</p>
<div class="gauge__center" aria-live="polite">
<p class="gauge__label" data-c-lab>Left to spend</p>
<p class="gauge__value" data-c-val></p>
<p class="gauge__note" data-c-note>$95 a day for 12 days</p>
</div>
</div>
<div class="drawer" data-drawer>
<ul class="legend" data-legend></ul>
<div class="list" data-list hidden>
<div class="list__head">
<button class="list__back" type="button" data-back aria-label="Back to all categories">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5"></path></svg>
</button>
<p class="list__name" data-list-name>Groceries</p>
<p class="list__count" data-list-count>9 payments</p>
</div>
<ul class="list__rows" data-list-rows></ul>
</div>
</div>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
</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.
27 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 “Monthly budget gauge” from Animorio and fit it into my siteThe entrance does not animate the four slices one by one but a single angle, sweep, going from 180 to the end of the spent part with back.out: each slice shows the piece of sweep that falls between its two angles. So the spring overshoots only with the last slice, like one object, and the earlier slices stay still.
Each slice is an SVG group with two paths: the thick stroke in its tone and a translucent white thread on the inner edge, the light. onUpdate rewrites the d attribute from angles, thickness and lift; the same path blurred underneath makes the glow, and the row of dots outside the arc starts where sweep arrives.
On hover the slice goes to a bigger thickness and moves along its bisector with back.out(2.6); it takes a feDropShadow and is moved to the end of the group so its shadow falls on its neighbours. The others drop to a quarter of their opacity, glow included.
Legend and list share one drawer of fixed height, so the card never changes size: the entries drop and fade staggered, then the header and the payment rows come in from below on a spring. The centre knows when a list is open and tells what is left in the category instead of its share.
A sequence of steps on the tweens’ promises takes the drawn pointer to the real spot of each slice, computed from the angles and the drawing’s size, opens Groceries, goes back, opens Transport from the legend and goes back; the card’s sheen follows it too. At the first real gesture it stops, and starts again after nine quiet seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #c8f169 | The colour of the spent part: the four slices are its tones, from brightest to dullest. |
SPRING | script.js | 1.5 | How far the drawing’s spring goes past the end before settling. |
DRAW_TIME | script.js | 1.6 | The seconds the arc takes to draw itself on arrival. |
LIFT | script.js | 5 | How far the pointed slice lifts out of the arc. |
THICKEN | script.js | 4 | How much the pointed slice thickens. |
PAUSE | script.js | 1.3 | The seconds the autopilot stays on each slice. |
For the home of a personal finance or budgeting app, the monthly summary of an online bank, a couple’s or a household’s shared account, any spending cap to keep an eye on day by day.
The card takes the width of the box, the arc is also measured on the height (at most 52vh) and the drawer underneath is between 108 and 114 pixels tall, so both legend and list fit. A tap on a slice or an entry opens the payments straight away.
The arc is already drawn and the card fades in; the pointed slice only thickens, without lifting, the others dim, legend and list swap with a fade, the figures change without rolling and the drawn pointer stays hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.6 KB; the libraries: GSAP 28 KB.
Tested on 6 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.