Skip to content
animorio
IT
All components

AI model selector

Pickers, Hover, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

The model selector of Quill Studio, an AI writing app, like a Dribbble shot: three glass cards side by side, Swift, Balanced and Deep, each with a small tick chart of speed and depth, its tokens per second and its cost per 1K tokens. The chosen card has a rim of liquid metal whose reflections flow like molten metal; choosing another, the rim pours onto it on two springs, the leading side first and the trailing one after, and the numbers roll up. On hover the cards lean slightly toward the pointer with a reflection.

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>
<!--
  "AI model selector" 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 AI model selector with the liquid metal light</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>
    <span class="stage__grain" data-grain aria-hidden="true"></span>
    <!-- the model picker of an AI writing app: three glass cards side by side. The chosen one wears a rim of liquid
         metal whose reflections flow around it; choosing another, the rim pours across on two springs -->
    <section class="picker" data-wrap aria-labelledby="picker-title">
      <header class="picker__head">
        <p class="picker__title" id="picker-title">Choose a model</p>
        <p class="picker__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.8l1.5 4.2 4.3 1.5-4.3 1.5L8 13.2 6.5 9 2.2 7.5 6.5 6z"/></svg>Quill Studio</p>
      </header>

      <div class="picker__row" role="radiogroup" aria-labelledby="picker-title" data-row>
        <span class="rim" data-rim aria-hidden="true">
          <span class="rim__glow"><span class="rim__metal"></span></span>
          <span class="rim__metal" data-metal></span>
          <span class="rim__sheen" data-sheen></span>
        </span>

        <button class="card" type="button" role="radio" aria-checked="false" data-card data-speed="184" data-depth="0.34" data-price="0.12">
          <span class="card__tilt" data-tilt>
            <span class="card__glass" aria-hidden="true"></span>
            <span class="card__shine" aria-hidden="true"></span>
            <span class="card__top">
              <svg class="card__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M11.4 2.5L4.6 11h4.6l-.8 6.5 6.8-8.6H10.6z"/></svg>
              <span class="card__name">Swift</span>
            </span>
            <span class="card__line">Quick drafts and replies</span>
            <span class="chart" aria-hidden="true">
              <span class="chart__row"><span class="chart__label">Speed</span><span class="chart__ticks" data-ticks="speed"></span></span>
              <span class="chart__row"><span class="chart__label">Depth</span><span class="chart__ticks" data-ticks="depth"></span></span>
            </span>
            <span class="card__stat"><span class="num" data-num="speed">184</span><span class="card__unit">tok/s</span></span>
            <span class="card__rule" aria-hidden="true"></span>
            <span class="card__price"><span class="num num--big" data-num="price" data-prefix="$">$0.12</span><span class="card__unit">/ 1K tokens</span></span>
          </span>
        </button>

        <button class="card" type="button" role="radio" aria-checked="true" data-card data-speed="96" data-depth="0.66" data-price="0.48">
          <span class="card__tilt" data-tilt>
            <span class="card__glass" aria-hidden="true"></span>
            <span class="card__shine" aria-hidden="true"></span>
            <span class="card__top">
              <svg class="card__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 3.2v13.6M4 6.6h12M4 6.6l-2.2 5.2a2.4 2.4 0 004.4 0zM16 6.6l-2.2 5.2a2.4 2.4 0 004.4 0zM6.6 16.8h6.8"/></svg>
              <span class="card__name">Balanced</span>
            </span>
            <span class="card__line">Everyday writing and code</span>
            <span class="chart" aria-hidden="true">
              <span class="chart__row"><span class="chart__label">Speed</span><span class="chart__ticks" data-ticks="speed"></span></span>
              <span class="chart__row"><span class="chart__label">Depth</span><span class="chart__ticks" data-ticks="depth"></span></span>
            </span>
            <span class="card__stat"><span class="num" data-num="speed">96</span><span class="card__unit">tok/s</span></span>
            <span class="card__rule" aria-hidden="true"></span>
            <span class="card__price"><span class="num num--big" data-num="price" data-prefix="$">$0.48</span><span class="card__unit">/ 1K tokens</span></span>
          </span>
        </button>

        <button class="card" type="button" role="radio" aria-checked="false" data-card data-speed="38" data-depth="0.96" data-price="2.40">
          <span class="card__tilt" data-tilt>
            <span class="card__glass" aria-hidden="true"></span>
            <span class="card__shine" aria-hidden="true"></span>
            <span class="card__top">
              <svg class="card__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.6l7 3.8-7 3.8-7-3.8zM3 10l7 3.8 7-3.8M3 13.6l7 3.8 7-3.8"/></svg>
              <span class="card__name">Deep</span>
            </span>
            <span class="card__line">Long reasoning and research</span>
            <span class="chart" aria-hidden="true">
              <span class="chart__row"><span class="chart__label">Speed</span><span class="chart__ticks" data-ticks="speed"></span></span>
              <span class="chart__row"><span class="chart__label">Depth</span><span class="chart__ticks" data-ticks="depth"></span></span>
            </span>
            <span class="card__stat"><span class="num" data-num="speed">38</span><span class="card__unit">tok/s</span></span>
            <span class="card__rule" aria-hidden="true"></span>
            <span class="card__price"><span class="num num--big" data-num="price" data-prefix="$">$2.40</span><span class="card__unit">/ 1K tokens</span></span>
          </span>
        </button>
      </div>

      <footer class="picker__foot">
        <p class="picker__status" data-status>Balanced answers this chat</p>
        <p class="picker__hint">Change it any time</p>
      </footer>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.4 8.1-6 1.1 3.4 6.9-2.6 1.3-3.4-6.9L5.4 17.8z"/></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

50 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 “AI model selector” 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

In a dark studio, with a cold light behind, a faintly lit floor and a very fine grain, the panel for choosing the model of Quill Studio, an AI writing app, sits alone: at the top Choose a model and a small tag with a star, below three frosted glass cards side by side. Swift writes fast (184 tokens per second, 0.12 dollars per thousand tokens), Balanced is the everyday one (96 tokens, 0.48 dollars), Deep reasons at length (38 tokens, 2.40 dollars); each has its own line icon, a line saying what it is for, two small charts of thin ticks, speed and depth, and the price per 1K tokens. The chosen card has a rim of liquid metal: two rings of chrome turn against each other and blend, so white highlights and a thread of blue flow along the edge like molten metal, with a soft halo around it and a blue light dripping into the glass from the top; its ticks are blue and its numbers white. Choosing another card the rim does not jump: it pours, the leading side sets off on a stiff spring and the trailing one follows softer, so the rim stretches, thins as it runs, arrives and settles with a pixel of bounce, and the reflections speed up while it travels. Meanwhile the numbers of the chosen card roll a full turn, digit after digit, its ticks light up one by one and below the line says Deep answers this chat. With the mouse over it, the card leans a couple of degrees toward the pointer, lifts by a few pixels and a reflection follows; leaving, it straightens with an elastic. Pressed it sinks slightly and comes back on a spring. Until someone touches it, a drawn pointer picks Swift, then Deep, then goes back to Balanced.

How it works

Metal from two cones

The rim is a single absolute element above the cards: inside, two chrome conic-gradients with many stops (dark, silver, white, a thread of blue) blended with background-blend-mode lighten and cut down to a 1.6 pixel ring with a content-box mask and exclude. Every frame the ticker turns the two angles in opposite directions at different speeds: where the highlights cross a flowing reflection is born, and it reads as liquid instead of a spinning light. A thicker, blurred copy makes the halo.

Two springs that pour

The rim has no position but four sides, each with its own damped spring integrated by hand at 120 Hz. Going right, the right side has a spring one and a half times stiffer and the left one a softer one: the rim stretches and then closes back on the card. The sides’ speed thins the ring at top and bottom and speeds up the reflections, and damping just under critical leaves a pixel of bounce.

Rolling numbers

Each digit is a window one line tall over a column with 0-9 twice. Choosing a card the column goes from the digit in the first copy to the same one in the second, a full turn, with a light back.out and a stagger from the left; at the end it jumps back unseen to the first copy. The lit ticks of the chart grow again one by one with scaleY.

The lean in 2D

Only the child .card__tilt moves with GSAP, the button stays still for clicks. gsap.quickTo brings rotation and y toward the pointer, two CSS variables move the radial reflection and a third turns it on. The metal rim reads rotation, y and scale of the chosen card on every frame, so it stays stuck to it even while it leans.

The drawn pointer

From the load event a timeline takes an SVG pointer to Swift, Deep and Balanced: at each step it checks which card it is over and gives it the real hover, then presses and chooses it. When the real mouse comes over the loop stops, and starts again shortly after the mouse has left; at the first click or key it stops for good. The arrow keys change the choice as in a radiogroup.

Values to change

NameFileDefaultWhat it changes
MODELscript.js1The card chosen when the page opens: 0 Swift, 1 Balanced, 2 Deep.
FLOWscript.js1How fast the reflections flow along the metal rim.
POURscript.js1How quickly the rim pours from one card to the next.
WOBBLEscript.js1How liquid the rim is: 0.4 tight, 1.6 it stretches and bounces more.
TILTscript.js2.2How many degrees a card leans toward the pointer.
TICKSscript.js14How many ticks each little chart has.
ROLLscript.js0.9How many seconds the numbers of the chosen card take to roll.
AUTOscript.jstrueThe drawn pointer picks the cards by itself until someone touches them.

Try them in the Playground

When to use it

For an AI app or site that lets you pick the model (chat, writing, code, images), for a usage-based pricing page, for a settings panel of a developer platform: it puts the three choices side by side with what they cost and how fast they are, and the choice shows from afar.

On phones

On the phone the three cards stay side by side, narrower, with smaller words and the hint at the bottom hidden; there is no hover, so the lean and the reflection come under the finger at the touch and leave shortly after.

With reduced motion

Nothing moves: the metal rim stays still with its reflections and moves to the chosen card with a fade, the numbers change in place, the ticks light up only in strength and the cards do not lean; the drawn pointer appears directly on the cards.

Pitfalls

  • A single spinning conic-gradient looked like a lighthouse beam around the card, not metal: two cones turning in opposite directions blended with lighten give reflections where they cross, and they flow irregularly.
  • With the stiff spring of the leading side and a 1/60 s step the rim jittered at the Playground extremes: the integration takes two half steps every frame.
  • Leaning the chosen card, the rim stayed straight and came off the corners: the rim reads the card’s rotation, y and scale on every frame.
  • The loop starting when the script was read put the poster on different moments: it starts from the page’s load event.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.5 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