Skip to content
animorio
IT
All components

Assignee card

Cards, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

Two tickets in an invented work app, on black, each with the chip of the person working on it. Rest on a name for a moment and the profile card grows out of the chip itself: the little avatar and the name fly into the card and become its own (a shared element transition), and the body opens on a spring that passes the mark and settles. Inside are the role, the real local time with its minutes rolling, the status with its icon and two actions; Copy email turns into Copied with a tick drawing itself.

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>
<!--
  "Assignee 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 assignee card that grows out of their name in the ticket</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>
    <!-- two issues in Tessel, an invented issue tracker. Resting on the assignee, the little avatar and the name
         travel into a profile card that grows out of the chip itself -->
    <div class="board" data-board>
      <ul class="issues" aria-label="Issues in Tessel">
        <li class="issue">
          <svg class="issue__prio" viewBox="0 0 16 16" aria-label="High priority"><rect x="2" y="9" width="3" height="5" rx="1"></rect><rect x="6.5" y="6" width="3" height="8" rx="1"></rect><rect x="11" y="3" width="3" height="11" rx="1"></rect></svg>
          <span class="issue__key">TSL-214</span>
          <span class="issue__title">Empty states for billing</span>
          <button class="chip" type="button" data-chip="ines" aria-haspopup="dialog" aria-expanded="false">
            <span class="chip__av" data-chip-av>IV</span><span class="chip__name" data-chip-name>Ines Varga</span>
          </button>
        </li>
        <li class="issue">
          <svg class="issue__prio" viewBox="0 0 16 16" aria-label="Medium priority"><rect x="2" y="9" width="3" height="5" rx="1"></rect><rect x="6.5" y="6" width="3" height="8" rx="1"></rect><rect class="off" x="11" y="3" width="3" height="11" rx="1"></rect></svg>
          <span class="issue__key">TSL-221</span>
          <span class="issue__title">Retry failed webhooks</span>
          <button class="chip" type="button" data-chip="kofi" aria-haspopup="dialog" aria-expanded="false">
            <span class="chip__av" data-chip-av>KA</span><span class="chip__name" data-chip-name>Kofi Adjei</span>
          </button>
        </li>
      </ul>

      <div class="pop" data-pop role="dialog" aria-label="Assignee profile" aria-hidden="true">
        <span class="pop__bg" data-bg aria-hidden="true"><span class="pop__sheen" data-sheen></span></span>
        <div class="pop__in">
          <div class="pop__head">
            <span class="av" data-av><span class="av__ini" data-ini>IV</span></span>
            <span class="pop__who">
              <span class="pop__name" data-name>Ines Varga</span>
              <span class="pop__role" data-fade data-role>Design engineer · Payments</span>
            </span>
          </div>
          <div class="pop__rule" data-fade></div>
          <p class="pop__line" data-fade>
            <svg class="clock" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.8"></circle><path class="clock__h" data-hh d="M8 8V5.4"></path><path class="clock__m" data-mm d="M8 8V3.7"></path></svg>
            <span class="time" data-time aria-live="off"></span>
            <span class="pop__soft" data-zone>Lisbon · 1 h behind</span>
          </p>
          <p class="pop__line" data-fade>
            <svg class="state" data-state-icon viewBox="0 0 16 16" aria-hidden="true"><path data-state-path d=""></path></svg>
            <span data-state>Focusing</span>
            <span class="pop__soft" data-until>until 4:30 pm</span>
          </p>
          <div class="pop__actions" data-fade>
            <button class="act act--main" type="button" data-msg>
              <span class="act__lab" data-msg-lab>Message</span>
            </button>
            <button class="act" type="button" data-copy>
              <svg class="act__icon" viewBox="0 0 16 16" aria-hidden="true"><rect data-copy-a x="5.5" y="5.5" width="7.5" height="7.5" rx="1.8"></rect><path data-copy-b d="M10.5 3.6V3.4A1.4 1.4 0 0 0 9.1 2H4.4A1.4 1.4 0 0 0 3 3.4v4.7A1.4 1.4 0 0 0 4.4 9.5h.2"></path><path class="act__tick" data-tick d="M4.2 8.3 6.9 10.9 11.9 5.2"></path></svg>
              <span class="act__lab" data-copy-lab>Copy email</span>
            </button>
          </div>
        </div>
      </div>
    </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.

34 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 “Assignee 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 black background there is a list with two tickets in Tessel, an invented work app: the bar-shaped priority icon, the key TSL-214 or TSL-221, the title (‘Empty states for billing’, ‘Retry failed webhooks’) and on the right the chip of the person working on it, a small avatar with initials on a violet gradient and the name. Rest on the chip and, after a moment, the profile card is born right there: its body starts from the chip’s rectangle and opens on a spring that goes a few pixels past and settles, while its shadow deepens. The little avatar and the name do not vanish: they fly into the card, grow and become the card’s large avatar and title. Below them arrive, one after the other, the role, a thin rule drawing itself, the person’s local time (real, from their time zone) with the minutes rolling up from seven minutes earlier and the clock hands turning, the hour gap with whoever is looking, the status with its drawn icon (headphones for Focusing, a calendar for In a meeting) and until when, and two buttons: Message, light, and Copy email, which squashes when pressed and comes back on an elastic, swaps its icon for a tick that draws itself and says Copied. Behind the avatar a faint violet light leans towards the pointer. Moving to the other ticket the card goes back into its chip and is born again from the new one; leaving, it closes after a short grace period, shrinking until it is the chip again. A drawn pointer does it all by itself and starts again; it also works with the mouse, with touch (tap the name to open, outside to close) and with the keyboard (Tab, Enter, Esc). Every real minute the digits roll on by one.

How it works

The chip is the seed

The card sits over the chip, its avatar centred on the little one. The card’s body is a layer of its own: a GSAP timeline takes its left, top, width, height and radius from the chip’s rectangle to the full size, with back.out for a spring that passes the mark.

Shared avatar and name (FLIP)

The chip’s avatar and name are measured, and so are the card’s; the card’s start with an x, y and scale that put them exactly over the little ones, which switch off in the same instant. Then everything goes back to zero: it looks like the same piece moving and growing.

The rolling minutes

The time comes from Intl.DateTimeFormat with the person’s time zone. Each minute digit is a column of numbers clipped by a mask; a single value in minutes sets both columns (the tens roll when the units pass 9) and the angle of the two clock hands.

Closing and switching

Closing is the same timeline in reverse, quicker; moving to the other person waits for the way back to finish and builds a new timeline from the new chip. A small delay on opening and a grace period on closing stop flicker when the pointer crosses diagonally.

Copy email

Pressed, the button squashes by 4% and comes back with elastic.out; the two shapes of the copy icon shrink away and the tick draws itself with stroke-dashoffset while the label changes, then everything goes back.

Values to change

NameFileDefaultWhat it changes
OPEN_DELAYscript.js0.35The seconds resting on the name before the card opens.
CLOSE_DELAYscript.js0.3The grace period in seconds before the card closes.
GROW_TIMEscript.js0.62How long the card takes to grow out of the name.
SETTLEscript.js1.25How far the card goes past its size before settling.
ROLL_MINUTESscript.js7How many minutes roll in the local time as the card opens.
SHEENscript.js1How strong the light behind the avatar is.
LOOPscript.jstrueRepeats the drawn pointer’s walk.

Try them in the Playground

When to use it

For a work app, a project manager, an issue tracker, a CRM or a team dashboard: wherever a person’s name appears and you want to know who they are, what time it is for them and whether they are free, without leaving the page.

On phones

The same animation with adapted sizes: the list is as wide as the box, below 380 pixels the ticket key hides, the card stays within the list and opens by tapping the name; tapping outside closes it.

With reduced motion

Nothing moves: the card fades in in place while the chip fades out, the time is already right without rolling and Copied arrives with a fade.

Pitfalls

  • Measuring the card with transforms still applied threw the FLIP off: before measuring, transform and opacity are cleared from every piece, then the timeline is built.
  • With the minute columns aligned to the baseline, the digits clipped by the mask rose like superscripts: the time row has to be centre aligned.
  • Switching person halfway through opening left two cards: the new one is built only once the old one has gone back into its chip (onReverseComplete).

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 11 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