
The elastic button
Buttons, Hover, Text
The pricing block of a team tool, clean like a real product: you drag the seats slider, from 1 to 50, and the right plan lights up by itself, with a light that glides from Starter to Team to Business; the seat count, the price per seat and the monthly total roll digit by digit to their new values, and the button at the bottom rewrites itself with the plan’s name.
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>
<!--
"Per-seat pricing" 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 pricing that adds up with your team seats</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 pricing block of a team tool: drag the seats and the plan that fits lights up,
the price per seat and the monthly total roll to their new values -->
<section class="card" data-card aria-label="Pricing">
<header class="head">
<div class="head__text">
<p class="eyebrow">Crewsheet pricing</p>
<h1 class="title">Pay for the seats you use</h1>
</div>
<div class="total" aria-live="polite">
<p class="total__num"><span class="total__cur">$</span><span class="roll" data-total></span></p>
<p class="total__per">per month, <span data-billed>billed monthly</span></p>
</div>
</header>
<div class="seats">
<div class="seats__top">
<p class="seats__label">Team size</p>
<p class="seats__count"><span class="roll" data-seats></span> <span class="seats__unit" data-unit>seats</span></p>
</div>
<div class="slider" data-slider role="slider" tabindex="0" aria-label="Seats" aria-valuemin="1" aria-valuemax="50" aria-valuenow="4">
<div class="rail" data-rail>
<div class="rail__track" data-track>
<div class="rail__fill" data-fill></div>
</div>
<div class="handle" data-handle><span class="handle__dot" data-knob></span></div>
</div>
<div class="marks" data-marks aria-hidden="true"></div>
</div>
</div>
<div class="plans" data-plans>
<span class="plans__glow" data-glow aria-hidden="true"></span>
<button class="plan" type="button" data-plan="0">
<span class="plan__name">Starter</span>
<span class="plan__price"><b>$9</b> / seat</span>
<span class="plan__range">1 to 5 seats</span>
<span class="plan__feat"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Shared boards</span>
</button>
<button class="plan" type="button" data-plan="1">
<span class="plan__name">Team <em class="plan__tag">Popular</em></span>
<span class="plan__price"><b>$12</b> / seat</span>
<span class="plan__range">6 to 25 seats</span>
<span class="plan__feat"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>Guests and roles</span>
</button>
<button class="plan" type="button" data-plan="2">
<span class="plan__name">Business</span>
<span class="plan__price"><b>$10</b> / seat</span>
<span class="plan__range">26 to 50 seats</span>
<span class="plan__feat"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.3 12.5 4.8"/></svg>SSO and audit log</span>
</button>
</div>
<footer class="foot">
<p class="foot__note" data-note>4 seats on Starter, everything else is free.</p>
<button class="cta" type="button" data-cta><span class="cta__label" data-cta-label>Start with Starter</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>
</footer>
</section>
<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.
40 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 “Per-seat pricing” from Animorio and fit it into my siteThe slider holds a value v from 0 to 1; the seats are 1 plus v times 49 rounded, the plan comes from the limits 5 and 25, the total is seats times the plan’s price. Everything is recomputed only when the seats change, so the digits never roll for nothing.
Under the three plans there is a single element, the glow: GSAP takes it to the lit plan’s offsetLeft and offsetWidth with back.out, and a scaleY from 0.96 to 1 with elastic.out gives it the settle. On resize it is measured again at once, without animation.
Each number is columns with the digits 0 to 9 stacked, and GSAP moves each column to yPercent minus ten times the digit; the columns that are not needed have zero width and open with a transition, so the number never jumps sideways.
Dragging uses pointer events with setPointerCapture and touch-action: none; the arrows move one seat, Page Up and Down five, Home and End go to the ends. The plans are real buttons.
| Name | File | Default | What it changes |
|---|---|---|---|
START_SEATS | script.js | 4 | How many seats it starts at, from 1 to 50. |
MAX_SEATS | script.js | 50 | How many seats at most on the slider. |
STARTER_PRICE | script.js | 9 | The monthly price per seat of the Starter plan, in dollars. |
TEAM_PRICE | script.js | 12 | The monthly price per seat of the Team plan. |
BUSINESS_PRICE | script.js | 10 | The monthly price per seat of the Business plan. |
GLOW_SPEED | script.js | 0.55 | How many seconds the plan glow takes to glide to the new plan. |
ACCENT | script.js | #4f46e5 | The colour of the plan glow and the checkmarks. |
On the pricing page of a team tool, per-seat software or any service paid per person: visitors see at once how much they would spend for their team and which plan they need, without doing the maths.
The card takes the width of the box; the three plans stay in a row but more compact, without the Popular label, the feature and the bottom line, and the button stretches across the card. With a finger the slider drags as with a mouse, without scrolling the page.
No springs or rolling: the glow moves straight to the right plan, the digits change without rolling, and the autopilot shows 14, 38 and 4 seats one after another.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.0 KB; the libraries: GSAP 28 KB.
Tested on 26 October 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.