Skip to content
animorio
IT
All components

Service desk card

Cards, HoverGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

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.

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

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.

26 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 “Service desk 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

A white card with the service desk of a car dealership: on top the wrench icon, the name and the days, then three advisors, and at the bottom how full the workshop is today (seven bays out of nine) with the link to book. Hover a row and it opens: the avatar turns its shape and a sheen crosses it, the direct line and three tags come in staggered, and the round button stretches into «Call Ana». The other two rows fold lower, with a smaller avatar and the role fading out, and step back; a white plate with a soft shadow slides under the open row. Copy draws its tick and the word rolls to «Copied»; the call button turns blue, the label rolls to «Calling Ana», the handset shakes and a thread of light runs round the pill. Theo's status, on a call, counts the seconds by itself.

How it works

Three states for each row

Every 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 plate that follows

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 that becomes a pill

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.

The thread of light of the ring

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.

The pilot

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.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js0.55Seconds for a row to open and the others to fold.
SPRINGscript.js1.4How far the rows and the pill overshoot before settling (0 none).
FOLDscript.js0.7Height of a folded row against a resting one.
DIMscript.js0.55Opacity of the folded rows.
GLIDEscript.js0.45Seconds for the white plate to reach the open row.
CALL_TIMEscript.js2.6Seconds the pill rings before settling back.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The white plate followed the open row with a single tween started at the beginning: the rows changed height meanwhile and the plate ended up short. Now a ticker reads position and height every frame and hands them to quickTo only when they change.
  • The pill changed label and width together and for a moment the new label spilled past the edge: first the old one leaves, then the new one is measured, then the pill stretches.

Libraries

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.

Testing

Tested on 9 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