Skip to content
animorio
IT
All components

Metal sheen plan card

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

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.

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>
<!--
  "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>

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.

32 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 “Metal sheen plan card” 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 sits the Pro plan card of Ostrel, an invented AI app: a thin brushed metal edge, the Pro title in silver letters, the Monthly / Yearly switch, the big price, four included items and the silver Upgrade to Pro button. The sheen on the edge turns slowly by itself; where the pointer passes the edge lights up, a band of light glides over the title and the whole card, and the card tilts a few degrees towards it. Picking Yearly stretches the switch’s pill onto the other option, the price digits roll from 30 to 24 with a small bounce, the line below says the yearly total and the Save 20% label springs in. The checks of the items draw themselves in a stagger. A flash of light runs over the button, pressed it squashes and springs back, a loading ring spins and then the button turns dark, with the check and You’re on Pro in silver, while the sheen makes a quick lap of the edge. A drawn pointer does it all by itself and starts again; it really works with mouse, touch and keyboard.

How it works

A metal edge

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

The silver title

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.

Digits that roll

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.

The button’s states

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.

The autopilot

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.

Values to change

NameFileDefaultWhat it changes
MONTHLYscript.js30The monthly price with monthly billing, in dollars.
DISCOUNTscript.js20The discount in percent with yearly billing.
TILTscript.js7How many degrees at most the card tilts towards the pointer.
SHEENscript.js1How strong the metal sheen is.
EDGE_SPEEDscript.js1How fast the sheen turns round the edge by itself.
LOAD_TIMEscript.js1.4The seconds of loading after Upgrade.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • A still linear gradient on the edge looks like grey plastic: metal comes from the narrow bright bands of the turning conic gradient and the hot spot following the hand.
  • The dark background of the done button does not fade from the silver gradient: it needs a layer on top whose opacity is tied to a CSS variable.
  • Digits without font-variant-numeric: tabular-nums change width as they roll and the price wobbles.

Libraries

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.

Testing

Tested on 25 October 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