
The elastic button
Buttons, Hover, Text
The Pro plan card of an AI app, on black: its edge and title are brushed metal, with a sheen that turns by itself and lights up where the pointer passes, while the card tilts slightly towards it. Picking Yearly rolls the price digit by digit from 30 to 24 dollars and Save 20% springs in; the checks of the list draw themselves one after another and the Upgrade button glints, squashes, loads and becomes You’re on Pro.
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>
<!--
"Metal sheen plan card" 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 plan card with a metal sheen</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 Pro plan of an AI app, on near black: a brushed metal edge and title with a sheen that follows the pointer,
a Monthly / Yearly switch with a price that rolls digit by digit, drawn checks and an Upgrade button with states -->
<div class="tilt" data-tilt>
<article class="plan" data-plan aria-label="Ostrel Pro plan">
<span class="plan__edge" aria-hidden="true"></span>
<span class="plan__glare" data-glare aria-hidden="true"></span>
<div class="plan__body">
<header class="plan__head">
<div class="plan__name">
<svg class="plan__mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.8 20 7.4v9.2l-8 4.6-8-4.6V7.4Z"></path><path d="M12 7.6 16.2 10v4.8L12 17.2l-4.2-2.4V10Z"></path></svg>
<h2 class="plan__title" data-title>Pro</h2>
</div>
<div class="switch" role="group" aria-label="Billing period" data-switch>
<span class="switch__knob" data-knob aria-hidden="true"></span>
<button class="switch__opt is-on" type="button" data-period="month" aria-pressed="true">Monthly</button>
<button class="switch__opt" type="button" data-period="year" aria-pressed="false">Yearly</button>
</div>
</header>
<p class="plan__lead">For people who work with Ostrel every day.</p>
<div class="price">
<span class="price__cur">$</span>
<span class="price__digits" data-digits aria-hidden="true"></span>
<span class="price__per">/ month</span>
<span class="save" data-save>Save 20%</span>
<span class="sr" data-price-sr>$30 per month</span>
</div>
<p class="plan__bill" data-bill>Billed monthly, cancel anytime</p>
<span class="plan__rule" aria-hidden="true"></span>
<ul class="list" data-list>
<li><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.4 8.4 6.6 11.4 12.6 4.8"></path></svg>Unlimited chats with Ostrel 4</li>
<li><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.4 8.4 6.6 11.4 12.6 4.8"></path></svg>Files and images up to 200 MB</li>
<li><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.4 8.4 6.6 11.4 12.6 4.8"></path></svg>Priority speed at peak hours</li>
<li><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.4 8.4 6.6 11.4 12.6 4.8"></path></svg>Early access to new models</li>
</ul>
<button class="up" type="button" data-up>
<span class="up__shine" data-shine aria-hidden="true"></span>
<span class="up__label" data-label>Upgrade to Pro</span>
<svg class="up__spin" data-spin viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="7"></circle><path d="M10 3a7 7 0 0 1 7 7"></path></svg>
<span class="up__done" data-done><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.4 8.4 6.6 11.4 12.6 4.8"></path></svg>You’re on Pro</span>
</button>
<p class="plan__foot" data-foot>Secure checkout. Prices in USD.</p>
</div>
</article>
</div>
<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.
32 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 “Metal sheen plan card” from Animorio and fit it into my siteThe edge is an element above the card with a conic gradient of greys and silvers, shown only on a 1.5 pixel ring through a mask that removes the content. Over it there is a light radial gradient at the pointer: the conic angle and the hot spot are CSS variables GSAP updates every frame.
Pro has a brushed gradient clipped to its letters with background-clip: text, wider than the word; its position follows the pointer in reverse, so the bright band glides over the letters as on real metal. The same variable moves a faint band of light over the whole card.
Each place of the price is a window one line tall holding a column from 0 to 9; GSAP moves it with yPercent onto the right digit with back.out, the second digit slightly slower than the first. The switch stretches its pill towards the new option and then sets it down on a spring.
On hover a flash crosses the button and the shadow lengthens, on press it squashes to 96.5%, then an SVG ring spins until the fake payment is done. The dark background of the confirmation is a layer faded in by animating a CSS variable, because gradients do not blend into each other.
A drawn pointer travels over the card, picks Yearly, reads the items, presses Upgrade and waits for the confirmation, then goes back to Monthly and starts again; the timeline pauses during the loading. As soon as the mouse really moves or the page is touched the autopilot switches off.
| Name | File | Default | What it changes |
|---|---|---|---|
MONTHLY | script.js | 30 | The monthly price with monthly billing, in dollars. |
DISCOUNT | script.js | 20 | The discount in percent with yearly billing. |
TILT | script.js | 7 | How many degrees at most the card tilts towards the pointer. |
SHEEN | script.js | 1 | How strong the metal sheen is. |
EDGE_SPEED | script.js | 1 | How fast the sheen turns round the edge by itself. |
LOAD_TIME | script.js | 1.4 | The seconds of loading after Upgrade. |
For the pricing page of an AI app or subscription software, the plan to highlight among the others, the window inside an app that offers an upgrade to the higher plan.
The card takes 88% of the width up to 352 pixels and sizes spacing, price and button on the height too, so it fits the box; in short windows the line under the title and the one at the bottom disappear. A touch tilts the card and lights the sheen where the finger lands, and presses the buttons like a click.
No tilt, no turning edge, no rolling: the price changes at once, the label, the items and the button states fade in; the sheen stays, still.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.8 KB; the libraries: GSAP 28 KB.
Tested on 25 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.