Skip to content
animorio
IT
All components

Pricing card with seats

Pricing, HoverGSAP, CSS onlyMediumCompressed weight: Demo 9.4 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black background, with a coloured light behind and a fine grain, a frosted glass card split in two. On the left the Ondalune brand with its drawn wave and the Premium tag, the three-way Solo, Duo and Family switch, the large monthly price, the line saying what each person pays and the row of seat avatars with the account count. On the right What’s included, the perks list with checkmarks, the Start free trial button and the free month line. Picking a plan, the glass pill glides onto the option on a spring, stretches as it travels and squashes as it lands; the price rolls digit by digit from 10.99 to 15.99 to 19.99, the line below says 8.00 or 3.33 per person; the new avatars join from the left one after another, turning slightly and bouncing, the one already there makes room with a nudge, and going back to Solo they leave from the last one; the number and the word accounts rewrite themselves. In the list the Duo and Family rows drop in from the top, lit white for a moment, and leave by closing up. A violet, pink or orange light, the plan’s colour, runs along the card’s 1px border and speeds up at each change; the button takes the same colour, with a flash crossing it, and so do the checkmarks, the brand’s wave and the light behind the card, which drifts a little. The autopilot pointer picks Duo, then Family, presses the button and goes back to Solo.

How it works

One colour for everything

The 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.

The light on the 1px border

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.

Avatars joining and leaving

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 list that grows from the top

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.

Values to change

NameFileDefaultWhat it changes
START_PLANscript.js0The plan picked at the start: 0 Solo, 1 Duo, 2 Family.
SOLO_PRICEscript.js10.99The monthly price of the Solo plan, in dollars.
DUO_PRICEscript.js15.99The monthly price of the Duo plan, in dollars.
FAMILY_PRICEscript.js19.99The monthly price of the Family plan, in dollars.
FAMILY_SEATSscript.js6How many seats the Family plan has, from 3 to 6 avatars.
SPRINGscript.js0.75How many seconds the switch pill takes to arrive and settle.
BEAM_LAPscript.js7How many seconds the light takes to go round the card’s border.
SOLO_COLORscript.js#9d92ffThe Solo plan colour: light, button and checkmarks.
DUO_COLORscript.js#ff7f9fThe Duo plan colour.
FAMILY_COLORscript.js#ffb457The Family plan colour.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • On the phone the card spilled sideways: with grid-template-columns 1fr the columns grow to the longest unwrapped line; with minmax(0, 1fr) and min-width 0 they stay inside the card.
  • To spin the conic-gradient its angle must be a property registered with @property (syntax angle), or the browser cannot interpolate it; the light reads its colour from --accento, so one tween on the root is enough and the gradient is never rewritten each frame.
  • The step between avatars is measured on their real width and recomputed on resize: on the phone they are smaller, and with a fixed step the row stayed wide and pushed the label out.

Libraries

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.

Testing

Tested on 4 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components