
The star rating
Ratings, SVG, Hover
The Set aside button of a bank’s savings app, a pill of smoked glass in a dark room, like a Dribbble shot. Inside the glass the savings goal for a trip to Japan is a level of mint light with a living surface. With the mouse over it a hatching shows how far this transfer will take it and the chip shows the new percent; pressed, the light flows up to the mark with its surface sloshing and settling on a spring, then the plane turns into a check and a thin anamorphic streak of light crosses the glass.
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>
<!--
"Savings goal button" 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 set aside button with the glass that fills to the goal</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 Set aside button of a savings app, a pill of smoked glass in a dark room. Inside the glass the savings goal
is a level of mint light with a living surface: on hover a hatched ghost shows how far this transfer takes it,
pressed the light flows up to the new mark with its surface trembling, then the plane turns to a check and a
thin anamorphic streak crosses the glass -->
<div class="sv" data-wrap>
<span class="sv__spill" data-spill aria-hidden="true"></span>
<span class="sv__streak" data-streak-box aria-hidden="true"><span class="sv__streak-glow" data-streak-glow></span><span class="sv__streak-line" data-streak></span></span>
<button class="sv__btn" type="button" data-btn data-autoclic aria-label="Set aside $600 for the Japan trip">
<span class="sv__body" data-body>
<span class="sv__glass" aria-hidden="true"></span>
<svg class="sv__level" data-level aria-hidden="true">
<defs>
<linearGradient id="sv-liquid" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style="stop-color:var(--mint)" stop-opacity="0.24"/>
<stop offset="0.55" style="stop-color:var(--emerald)" stop-opacity="0.16"/>
<stop offset="1" style="stop-color:var(--deep)" stop-opacity="0.42"/>
</linearGradient>
<linearGradient id="sv-lip" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" style="stop-color:var(--mint)" stop-opacity="0"/>
<stop offset="1" style="stop-color:var(--mint)" stop-opacity="0.34"/>
</linearGradient>
<linearGradient id="sv-mark" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style="stop-color:var(--mint)" stop-opacity="0"/>
<stop offset="0.5" style="stop-color:var(--mint)" stop-opacity="0.95"/>
<stop offset="1" style="stop-color:var(--mint)" stop-opacity="0"/>
</linearGradient>
<pattern id="sv-hatch" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(-38)">
<rect width="1" height="5" style="fill:var(--mint)" fill-opacity="0.32"/>
</pattern>
<filter id="sv-soft" x="-50%" y="-10%" width="200%" height="120%"><feGaussianBlur stdDeviation="3"/></filter>
</defs>
<g class="sv__ghost" data-ghost>
<rect data-ghost-rect fill="url(#sv-hatch)"/>
<rect data-ghost-tint style="fill:var(--mint)" fill-opacity="0.05"/>
</g>
<path class="sv__liquid" data-liquid fill="url(#sv-liquid)"/>
<path class="sv__lip" data-lip fill="url(#sv-lip)"/>
<path class="sv__glow" data-glow filter="url(#sv-soft)"/>
<path class="sv__surface" data-surface/>
<rect class="sv__mark" data-mark width="1.6" fill="url(#sv-mark)"/>
</svg>
<span class="sv__shine" data-shine aria-hidden="true"></span>
<span class="sv__edge" data-edge aria-hidden="true"></span>
<span class="sv__rim" aria-hidden="true"></span>
<span class="sv__row">
<span class="sv__icon" data-icon aria-hidden="true">
<span class="sv__icon-face" data-icon-face>
<svg class="sv__plane" data-plane viewBox="0 0 24 24"><path d="M10.4 13.6 4.6 11.8a.8.8 0 0 1-.1-1.5l1-.5 6.6 1.2 3.9-3.9a1.9 1.9 0 0 1 2.7 2.7l-3.9 3.9 1.2 6.6-.5 1a.8.8 0 0 1-1.5-.1l-1.8-5.8-2.6 2.6.2 1.7-.9.9-1.2-2.4-2.4-1.2.9-.9 1.7.2z"/></svg>
<svg class="sv__check" viewBox="0 0 24 24"><path data-check pathLength="1" d="M7 12.4l3.3 3.3 6.7-7"/></svg>
</span>
</span>
<span class="sv__text" aria-hidden="true">
<span class="sv__state" data-state>
<span class="sv__title" data-t>Set aside $600</span>
<span class="sv__sub" data-s>Japan trip · $3,100 of $5,000</span>
</span>
<span class="sv__state" data-state>
<span class="sv__title sv__title--busy" data-t>Moving $600</span>
<span class="sv__sub" data-s>From Everyday to Japan trip</span>
</span>
<span class="sv__state sv__state--done" data-state>
<span class="sv__title" data-t>Saved for Japan</span>
<span class="sv__sub" data-s>$3,700 of $5,000 · on track</span>
</span>
</span>
<span class="sv__chip" aria-hidden="true">
<span class="sv__chip-now" data-chip-now><span data-pct>62</span><span class="sv__chip-unit">%</span></span>
<span class="sv__chip-next" data-chip-next>
<svg viewBox="0 0 12 12"><path d="M6 9.4V2.8M3.2 5.4 6 2.6l2.8 2.8"/></svg>
<span data-pct-next>74</span><span class="sv__chip-unit">%</span>
</span>
</span>
</span>
</span>
</button>
</div>
<p class="sr" aria-live="polite" data-live></p>
</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.
28 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 “Savings goal button” from Animorio and fit it into my siteThe button is a single box (moved only by GSAP) with absolute layers: the smoked glass with a radial reflection at the top, the SVG of the level, the light under the pointer driven by two CSS variables, the edge’s arc of light (a conic-gradient cut down to the one pixel edge with mask-composite) and on top the inner shadows of the glass hairline.
The level is an SVG path redrawn on every frame only while something moves: 17 points on a vertical line bent by two sines and a tilt. The waves’ amplitude is a damped spring pushed by the level’s speed, the tilt follows it forward while it runs; when everything stops the requestAnimationFrame loop switches off.
The same outline does three things: the liquid’s fill with a top to bottom gradient, the bright line of the surface and, under it, the same line seven pixels wide with a feGaussianBlur for the halo; a fourth path, the same curve moved 22 pixels back, is the brighter lip where the light thickens.
Between today’s level and the one after the transfer there is a rectangle filled with a pattern of one pixel lines rotated by −38 degrees, and the arrival mark is a line with a gradient that fades at its ends: GSAP opens it from the middle with attr y1 and y2 on an elastic spring.
The level reaches the mark with power2.inOut, the surface flashes (width and halo) and takes a knock that makes it ring once; the disc turns with scaleX and comes back mint with the check drawn by strokeDashoffset; the anamorphic light is a 1.5 pixel line wider than the pill with a blurred halo in mix-blend-mode screen.
| Name | File | Default | What it changes |
|---|---|---|---|
GOAL_NAME | script.js | Japan trip | The name of the goal, in the line under the words. |
AMOUNT | script.js | 600 | The dollars the button sets aside. |
SAVED | script.js | 3100 | The dollars already set aside. |
GOAL | script.js | 5000 | The goal in dollars. |
WORK | script.js | 1.7 | How many seconds the light takes to flow up to the new level. |
SLOSH | script.js | 1 | How much the surface sloshes: 0 still, 2 lively. |
GLINT | script.js | 1 | The strength of the anamorphic streak: 0 none, 1.5 bright. |
SPRING | script.js | 1 | How springy the moves are: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 1.9 | How many seconds the success stays before going back to rest. |
AUTO | script.js | true | The button goes round by itself until someone touches it. |
For a bank’s app or a savings app: setting money aside for a goal (a trip, a home, an emergency fund), making a deposit, rounding up spending. It first shows how far the transfer will go, then shows it happening and ends with a measured moment of celebration; it also suits a travel app that helps you save for the trip.
On the phone the button is at most 86% of the screen wide, the level and the mark are recomputed on the real width and the anamorphic light stays inside the screen; there is no hover, so the hatching and the new percent show while the light flows, and at the touch the light and the edge arc turn towards the finger.
Nothing flows and nothing sloshes: the level dims halfway and comes back already at 74%, the words and the chip change in place with a fade, the percent counts, the plane becomes a check and the anamorphic light is only a halo that lights up and fades.
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 3 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.