
The star rating
Ratings, SVG, Hover
The button to move to a better seat in a made-up concert hall, Aurel Hall. Inside the dark pill sits a tiny map of the stalls: the arched stage, four curved rows and your amber seat at the back. On the tap the seat lifts out of its row and hops row by row towards the stage, the rows it jumps over dip by a hair, the row letter in the chip rolls from M to C; when it sits down in the free seat of the front row the stage light falls on it, the pill swells and says Row C · Seat 14 with a drawn tick.
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>
<!--
"Upgrade seat 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 Upgrade seat button with the seat that moves up to the front row</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">
<!-- one gesture: move to a better seat. Pressed, your seat in the little seat map lifts out of the back row and
hops row by row towards the stage while the row letter rolls from M to C; it lands in the free seat of the
front row, the stage light falls on it and the pill shows your new row and seat -->
<div class="frame" data-wrap>
<button class="u" type="button" data-btn data-autoclic aria-describedby="u-note">
<span class="u__skin" data-skin aria-hidden="true"></span>
<span class="u__glow" data-glow aria-hidden="true"></span>
<span class="u__warm" data-warm aria-hidden="true"></span>
<span class="u__sheen" data-sheen aria-hidden="true"></span>
<span class="u__map" aria-hidden="true">
<svg viewBox="0 0 48 36" data-map>
<defs>
<linearGradient id="u-cone" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="var(--palco)" stop-opacity="0.75"></stop>
<stop offset="1" stop-color="var(--palco)" stop-opacity="0"></stop>
</linearGradient>
</defs>
<path class="m__stagefill" d="M9 6.6 Q24 1.4 39 6.6 L39 7.4 Q24 3.2 9 7.4Z"></path>
<path class="m__stage" data-stage d="M9 6.6 Q24 1.4 39 6.6"></path>
<path class="m__cone" data-cone d="M22.7 4.6 L25.3 4.6 L28.6 15.4 L19.4 15.4Z"></path>
<g data-seats></g>
<g data-mineg><rect class="m__mine" data-mine x="-2" y="-1.6" width="4" height="3.2" rx="1.1"></rect></g>
</svg>
</span>
<span class="u__labels" data-labels>
<span class="u__label" data-l="idle">Upgrade seat</span>
<span class="u__label" data-l="wait">Moving you closer</span>
<span class="u__label" data-l="done">Row <span data-rowdone>C</span><span class="u__sep">·</span><span class="u__num">Seat <span data-seatnum>14</span></span></span>
</span>
<span class="u__chip" data-chip aria-hidden="true">
<span class="u__chipbg" data-chipbg></span>
<span class="u__ch" data-c="price" data-price>+$24</span>
<span class="u__ch" data-c="row">Row <span class="u__roll"><span class="u__strip" data-strip></span></span></span>
<span class="u__ch u__ch--ok" data-c="ok">
<svg viewBox="0 0 16 16"><path data-tick d="M4.2 8.4 6.9 11 11.9 5.4"></path></svg>
</span>
</span>
</button>
<p class="note" id="u-note" aria-live="polite">
<span class="note__l" data-n="idle">Aurel Hall · Stalls · 3 seats left up front</span>
<span class="note__l" data-n="done">Your ticket is updated · same night, closer</span>
</p>
</div>
</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.
23 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 “Upgrade seat button” from Animorio and fit it into my siteThe seats are SVG rects made in a loop: x at a fixed step, y rising towards the sides along a parabola, so the rows curve around the stage as in a real hall. The front row is shorter, the free seat only has a dashed outline and your seat is a separate rect inside a g that GSAP moves in viewBox units.
Each hop is a keyframes tween on the group’s x and y, with a middle point higher than both rows: the arc. Alongside, keyframes on scaleX and scaleY stretch the seat in the air and squash it on landing; halfway through each hop the row underneath gets a wave staggered from the middle outwards.
In the chip a column of ten letters, from M to C, slides behind an 18-pixel window with edges faded by a mask: a power2.inOut tween as long as the hops, then one pixel too far and back, like an odometer coming to rest.
The pill’s skin is a layer of its own: on hover it swells with back.out while the label goes from wdth 100 to 112, and the label box follows the width measured for both widths of the axis. On landing the skin runs different scale keyframes across and down, the swell with the bounce.
| Name | File | Default | What it changes |
|---|---|---|---|
PRICE | script.js | 24 | The price of the better seat, in dollars, in the chip. |
SEAT | script.js | 14 | The number of the new front-row seat. |
WAIT | script.js | 1.6 | The seconds the seat takes to climb to the stage. |
HOP | script.js | 1 | How much the seat and the rows it passes hop. |
BOUNCE | script.js | 1.6 | How much the pill, the label and the chip bounce. |
HOLD | script.js | 2.4 | The seconds the autoplay leaves the new seat in view. |
--palco | style.css | #ffb547 | The amber of the stage light, your seat and the tick. |
--pillola | style.css | #141318 | The colour of the pill. |
In the site or app of a concert hall, a theatre or a festival, on the page of a ticket already bought: moving to a better seat by paying the difference, and seeing straight away where you end up.
The pill drops to 56 pixels and the label tightens by a point, the map stays readable; the finger taps like the mouse. Without hover the label does not widen and the light stays off.
The seat does not hop: it fades out at the back and fades in on the front row, the letter is already C, the stage light and the amber fade in and the tick is already drawn.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.0 KB; the libraries: GSAP 28 KB.
Tested on 16 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.