
The elastic button
Buttons, Hover, Text
The service desk card of a made-up car dealership, Meridale Motors, white on white like a Dribbble shot: three advisors in quiet rows, each with an abstract avatar (a colour field and one geometric shape, no faces), the role, the status and a round call button. On hover the row opens into its detail, with the direct line to copy and what that advisor looks after, while the other two fold small and step back and a white plate slides under the open row on a spring. The call button stretches into a pill with the name and, pressed, rings with a thread of light running round it.
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>
<!--
"Service desk 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 service desk card with the advisors that open on hover and the call button that rings</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 service desk card of Meridale Motors, an invented car dealership: three advisors drawn as abstract avatars,
each row opens on hover into its detail (direct line to copy, what they look after) while the others fold
small, and the call button grows into a pill that rings -->
<section class="desk" data-service aria-labelledby="desk-title">
<span class="desk__grain" aria-hidden="true"></span>
<header class="desk__head">
<span class="desk__icon" aria-hidden="true">
<svg viewBox="0 0 20 20"><path d="M13.6 3.3a3.7 3.7 0 0 0-4.5 4.8l-5.4 5.4a1.45 1.45 0 0 0 2.05 2.05l5.4-5.4a3.7 3.7 0 0 0 4.8-4.5l-2.15 2.15-1.95-.4-.4-1.95z"/></svg>
</span>
<span class="desk__meta">
<span class="desk__title" id="desk-title">Service desk</span>
<span class="desk__sub">Meridale Motors · Harbour Road</span>
</span>
<span class="desk__chip">Mon to Sat</span>
</header>
<ul class="team" data-team aria-label="Service advisors">
<li class="glider" data-glider aria-hidden="true"></li>
</ul>
<footer class="desk__foot">
<span class="bays" aria-label="Workshop today, 7 of 9 bays booked">
<span class="bays__label">Workshop today</span>
<span class="bays__bar" data-bays aria-hidden="true"></span>
<span class="bays__count"><b>7</b>/9 bays</span>
</span>
<a class="desk__book" href="#book" data-book>
<span>Book a service</span>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5"/></svg>
</a>
</footer>
</section>
<svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></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>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.
26 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 “Service desk card” from Animorio and fit it into my siteEvery row has three states: resting, open and folded. setActive(j) assigns them all at once and GSAP takes the height of the top part (R or R times FOLD), the height of the detail (measured on its content with offsetHeight), the avatar size, the role and the row opacity, with back.out on rows that open and power3 on rows that fold. R is measured on the window height and measured again on resize.
The white plate is a single element under the rows. A gsap.ticker reads offsetTop and offsetHeight of the open row and, only when they change, hands them to two gsap.quickTo (y and height): so the plate arrives with a small soft lag even while the rows are changing height.
The button is a 36 pixel circle holding the handset and the label in a slot. With the row open, its width goes to 36 plus the measured width of the label, on the spring. When the label changes, the old one leaves upwards, the new one is measured and the pill stretches before the new one rises from below.
Around the pill sits an SVG rectangle with pathLength 100 and corners as round as half its height: stroke-dasharray 22 78 and a stroke-dashoffset looping from 0 to -100 run a stretch of light along the edge, with a blue drop-shadow. After CALL_TIME seconds, or on a second press, the light goes out and the label comes back.
A drawn pointer opens Theo, moves to Ana, copies her number, calls her and then opens Priya before leaving and closing everything. At the first real mouse move, tap or key the pilot stops. With a finger a row opens and closes when tapped; from the keyboard it opens on focus and Esc closes it.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN_TIME | script.js | 0.55 | Seconds for a row to open and the others to fold. |
SPRING | script.js | 1.4 | How far the rows and the pill overshoot before settling (0 none). |
FOLD | script.js | 0.7 | Height of a folded row against a resting one. |
DIM | script.js | 0.55 | Opacity of the folded rows. |
GLIDE | script.js | 0.45 | Seconds for the white plate to reach the open row. |
CALL_TIME | script.js | 2.6 | Seconds the pill rings before settling back. |
SPEED | script.js | 1 | Pilot speed. |
LOOP | script.js | true | The pilot starts over. |
On the contact page or landing page of a car dealership, a workshop, a practice or a customer service team: the people to talk to in one card, each opening with their direct line without leaving the page. It also works in an app panel for a support team.
The same animation with adapted sizes: the card is 92% of the screen wide and the row height also follows the window height, so it fits the phone box. With a finger you tap a row to open it and again to close it; the buttons work as with the mouse.
Nothing moves: rows change size at once, the detail appears already in place, the plate arrives without sliding, the tick is already drawn, the ring light does not run and the pilot's pointer is hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 9 November 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.