
The star rating
Ratings, SVG, Hover
The member card of a hotel chain's app, in frosted glass on a warm black page: the guest's avatar sits in a metal frame, silver for now, with twenty notches around it, one per night towards Gold. Adding the Lisbon stay the last three notches draw themselves one after the other and the count rolls down to zero; then a beam of light runs once around the frame, the metal turns gold, the tier rolls to Gold member and the perks arrive. The highlight on the metal follows the pointer on a spring.
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>
<!--
"Gold frame guest avatar" 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 guest avatar whose frame turns gold</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 member card of a hotel app: the guest's avatar sits in a metal frame, silver for now, with twenty notches
around it, one per night towards Gold. Adding the Lisbon stay lights the last three notches one by one, the
count rolls down to zero, a beam of light runs once around the frame and the metal turns gold; the tier
rolls to Gold member and the perks slide in. The highlight on the metal follows the pointer -->
<div class="ga" data-wrap>
<span class="ga__glow" aria-hidden="true">
<span class="ga__glow-l ga__glow-l--silver"></span>
<span class="ga__glow-l ga__glow-l--gold" data-glow-gold></span>
</span>
<article class="ga__card" data-card>
<span class="ga__light" aria-hidden="true"></span>
<span class="ga__grain" aria-hidden="true"></span>
<header class="ga__top">
<span class="ga__brand">Halden<span class="ga__brand-s">Stays</span></span>
<span class="ga__since" data-since>Member since 2022</span>
</header>
<button class="ga__face" type="button" data-face aria-label="Elise Marchand, Silver member. Add the Lisbon stay">
<span class="ga__frame" aria-hidden="true">
<span class="ga__metal ga__metal--silver"></span>
<span class="ga__metal ga__metal--gold" data-gold></span>
<span class="ga__sweep" data-sweep></span>
</span>
<span class="ga__photo" aria-hidden="true">
<span class="ga__initials" data-initials>EM</span>
</span>
<svg class="ga__ring" viewBox="0 0 200 200" aria-hidden="true">
<defs>
<filter id="ga-soft" x="-20%" y="-20%" width="140%" height="140%">
<feGaussianBlur stdDeviation="2.2"/>
</filter>
</defs>
<g data-track></g>
<g class="ga__halo" data-halo filter="url(#ga-soft)"></g>
<g data-fill></g>
<g data-glints></g>
</svg>
</button>
<h2 class="ga__name" data-name>Elise Marchand</h2>
<p class="ga__tier" aria-hidden="true">
<span class="ga__roll">
<span class="ga__roll-i" data-tier>Silver member</span>
<span class="ga__roll-i ga__roll-i--gold" data-tier>Gold member</span>
</span>
</p>
<div class="ga__slot" aria-hidden="true">
<p class="ga__count" data-count>
<span class="ga__digits"><span class="ga__digits-col" data-digits></span></span>
<span data-count-word>nights to Gold</span>
<span class="ga__of" data-of>17 of 20</span>
</p>
<p class="ga__perks" data-perks>
<span class="ga__perk" data-perk>
<svg viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/><path d="M8 4.8V8l2.2 1.4"/></svg>
Late checkout
</span>
<span class="ga__perk" data-perk>
<svg viewBox="0 0 16 16"><circle cx="5.4" cy="8" r="2.8"/><path d="M8.2 8h5.6M11.6 8v2.2M13.4 8v1.6"/></svg>
Suite upgrades
</span>
</p>
</div>
<button class="ga__btn" type="button" data-btn>
<span class="ga__btn-face">
<span class="ga__btn-labels">
<span class="ga__btn-l">
<svg class="ga__btn-ico" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 5v10M5 10h10"/></svg>
<span data-btn-l>Add Lisbon stay · 3 nights</span>
</span>
<span class="ga__btn-l">
<svg class="ga__btn-ico" viewBox="0 0 20 20" aria-hidden="true"><path class="ga__tick" data-tick pathLength="1" d="M5.2 10.4l3.2 3.2 6.6-7"/></svg>
<span data-btn-l>Welcome to Gold</span>
</span>
</span>
</span>
</button>
</article>
</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.
33 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 “Gold frame guest avatar” from Animorio and fit it into my siteThe frame is a disc with a nine stop conic-gradient of light and dark, like a turned metal ring; the gold is a second identical disc on top, at zero opacity. The point the gradient starts from is a CSS variable, --ang: changing it, the highlight turns around the ring.
From the pointer the angle to the avatar's centre is worked out with atan2, starting at the top and going clockwise. The highlight's angle chases it on a spring integrated by hand (stiffness 120, damping 15, two steps per frame), always the short way round; with no pointer it swings slowly on its own.
The twenty notches are arcs on a circle of radius 95 in a 200 box, each with a gap proportional to its width. Each notch has three copies: the unlit track, the lit one with pathLength 1 and a dash revealed by its dashoffset, and a blurred one behind for the halo.
The number of nights left is a column of digits, 3, 2, 1, 0, in a window one line tall: at each notch the column moves up a line on a short spring. The tier, the button and the tags do the same with two layers stacked in a grid.
A third disc with an almost entirely transparent conic-gradient and a white blade, in screen blending, turns 360 degrees; as it passes the gold disc fades in, the is-gold class changes the colour of the notches and the button with a CSS transition and the glow behind warms up.
| Name | File | Default | What it changes |
|---|---|---|---|
GUEST | script.js | 'Elise Marchand' | The guest's name (the initials come from it). |
CITY | script.js | 'Lisbon' | The city of the stay, in the button. |
NIGHTS_GOAL | script.js | 20 | The nights needed for Gold: one notch each. |
NIGHTS_HAVE | script.js | 17 | The nights already stayed, lit from the start. |
STAY | script.js | 3 | The nights the stay adds; if they are not enough for Gold, the frame stays silver. |
TICK | script.js | 0.42 | Seconds between one notch and the next. |
SHINE | script.js | 1 | How bright the highlight on the metal and the beam are. |
SPRING | script.js | 1 | How springy the presses are: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 2.6 | Seconds it stays gold before going back. |
AUTO | script.js | true | Goes round by itself until someone touches it. |
For the guest profile in the app of a hotel, a holiday homes chain or an airline, on the loyalty page or right after check-out: the moment of moving up a tier becomes a small celebration without confetti.
The same animation with adapted sizes: the card is as wide as the box, the avatar is sized on the screen's height and width and the notches, drawn in an SVG box, scale with it. On touch the highlight turns towards the finger.
Nothing moves: the highlight stays still, the notches fade in, the gold fades in without the beam, the number changes in place and the words, the tags and the check swap with a fade.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.3 KB; the libraries: GSAP 28 KB.
Tested on 2 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.