
The elastic button
Buttons, Hover, Text
The glass Premium subscription card of a music and film app, on near black with light and grain: the Solo, Duo and Family switch is a pill that glides on a spring and squashes as it lands; changing plan rolls the price digit by digit, the seat avatars join and leave one after another (1, 2, 6), the perks list grows and shrinks with new rows dropping in from the top, and a light in the plan’s colour runs along the 1px border; the Start free trial button takes the same colour with a flash.
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>
<!--
"Pricing card with seats" 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 subscription pricing card with seats that join in</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 glass subscription card of a music and film app: picking Solo, Duo or Family slides a pill on a spring,
rolls the price, lets the seat avatars join or leave, grows the perks list from the top and recolours the light
that runs along the card's 1px border -->
<span class="glow" data-glow aria-hidden="true"><span class="glow__a"></span><span class="glow__b"></span></span>
<section class="card" data-card aria-label="Ondalune Premium plans">
<span class="card__edge" aria-hidden="true"></span>
<span class="card__beam" data-beam aria-hidden="true"></span>
<span class="card__sheen" aria-hidden="true"></span>
<div class="card__main">
<header class="brand">
<svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="12" r="10.2" class="brand__ring"/>
<path d="M6.6 13.4c1.2 0 1.2-3 2.4-3s1.2 4.6 2.4 4.6 1.2-6.2 2.4-6.2 1.2 4.6 2.4 4.6 1.1-1.6 1.6-1.6" class="brand__wave"/>
</svg>
<span class="brand__name">Ondalune</span>
<span class="brand__tag">Premium</span>
</header>
<div class="seg" data-seg role="radiogroup" aria-label="Plan">
<span class="seg__pill" data-pill aria-hidden="true"></span>
<button class="seg__opt" type="button" role="radio" data-opt="0">Solo</button>
<button class="seg__opt" type="button" role="radio" data-opt="1">Duo</button>
<button class="seg__opt" type="button" role="radio" data-opt="2">Family</button>
</div>
<div class="figures">
<div class="money">
<div class="price" aria-live="polite">
<span class="price__cur">$</span><span class="roll" data-price></span><span class="price__per">/month</span>
</div>
<p class="each"><span class="each__text" data-each>Just for you</span></p>
</div>
<div class="seats">
<span class="seats__row" data-seats>
<span class="av" data-av style="--h1:#f2c3a5;--h2:#b86e52">M</span>
<span class="av" data-av style="--h1:#c9b8ff;--h2:#6a52c9">J</span>
<span class="av" data-av style="--h1:#ffd59a;--h2:#c4872d">A</span>
<span class="av" data-av style="--h1:#a8e6d4;--h2:#3a9a80">L</span>
<span class="av" data-av style="--h1:#ffb3c4;--h2:#c4546f">K</span>
<span class="av" data-av style="--h1:#b5d4ff;--h2:#4a76c4">R</span>
</span>
<span class="seats__label" data-seats-label><b data-seats-num>1</b> <span data-seats-word>premium account</span></span>
</div>
</div>
</div>
<div class="card__side">
<p class="side__cap">What's included</p>
<ul class="perks" data-perks>
<li class="perk" data-perk="2"><span class="perk__in"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Kids profiles with a clean filter</span></li>
<li class="perk" data-perk="1"><span class="perk__in"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Blend, one mix for the whole house</span></li>
<li class="perk" data-perk="0"><span class="perk__in"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Ad-free music, films and series</span></li>
<li class="perk" data-perk="0"><span class="perk__in"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Lossless audio and 4K HDR</span></li>
<li class="perk" data-perk="0"><span class="perk__in"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Downloads on 5 devices</span></li>
</ul>
<div class="foot">
<button class="cta" type="button" data-cta><span class="cta__shine" aria-hidden="true"></span><span class="cta__label">Start free trial</span>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.6 4.2 12.5 8l-3.9 3.8"/></svg></button>
<p class="note" data-note>1 month free, then $10.99/month. Cancel anytime.</p>
</div>
</div>
</section>
<span class="grain" aria-hidden="true"></span>
<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.
56 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 “Pricing card with seats” from Animorio and fit it into my siteThe plan colour is a CSS variable, --accento, on the root: GSAP takes it from violet to pink to orange and the border light, the button, the checkmarks, the brand’s wave, the pill’s halo and the two blurred blobs behind the card all read it. A plan change is a single tween.
Over the card sits a ring made of a conic-gradient masked to the border only (mask with content-box and exclude). Its start angle is a property registered with @property, turned by GSAP’s ticker; at each change a spring takes the speed from nine times down to one, so the light darts and then calms down.
Six avatars sit side by side at fixed steps, measured on their width; only the first 1, 2 or 6 are on. New ones arrive with back.out and a 60 ms stagger, leaving ones go from the last; the row changes width on a spring and the label next to it follows.
The Duo and Family perks sit at the top of the list: coming in they go from zero height to auto and their content drops from -14 pixels, white, back to grey; leaving they close up. The price is made of digit columns from 0 to 9 that GSAP moves to yPercent minus ten times the digit.
| Name | File | Default | What it changes |
|---|---|---|---|
START_PLAN | script.js | 0 | The plan picked at the start: 0 Solo, 1 Duo, 2 Family. |
SOLO_PRICE | script.js | 10.99 | The monthly price of the Solo plan, in dollars. |
DUO_PRICE | script.js | 15.99 | The monthly price of the Duo plan, in dollars. |
FAMILY_PRICE | script.js | 19.99 | The monthly price of the Family plan, in dollars. |
FAMILY_SEATS | script.js | 6 | How many seats the Family plan has, from 3 to 6 avatars. |
SPRING | script.js | 0.75 | How many seconds the switch pill takes to arrive and settle. |
BEAM_LAP | script.js | 7 | How many seconds the light takes to go round the card’s border. |
SOLO_COLOR | script.js | #9d92ff | The Solo plan colour: light, button and checkmarks. |
DUO_COLOR | script.js | #ff7f9f | The Duo plan colour. |
FAMILY_COLOR | script.js | #ffb457 | The Family plan colour. |
On the Premium page of a music, film or podcast app, or any service with a plan for one, for two and for the family: visitors see at once how many people the plan covers and what each one pays.
The card becomes a single column: at the top brand, switch, price with the smaller avatars beside it, then the list and the button as wide as the card. Everything is picked with a tap and works as on a computer.
No springs, rolling or spinning light: the pill moves straight onto the option, price, avatars and colour change at once, new list rows fade in, and the autopilot shows Duo, Family and Solo one after another.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.4 KB; the libraries: GSAP 28 KB.
Tested on 4 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.