Skip to content
animorio
IT
Back to the library

Glowing team cards

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

The team section of a made-up design studio, on white, in the style of today’s component libraries: four cards with a soft gradient tile instead of a photo and large initials. On hover the card lifts a few pixels, the blurred gradient lights up and follows the pointer, the initials gain weight, the role rolls over to the city and the other cards dim slightly.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.

<!doctype html>
<!--
  "Glowing team cards" 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 team cards whose gradient lights up on hover</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">
    <!-- the team section of a small design studio: four cards with a soft gradient instead of a photo; on hover the
         card lifts, its gradient lights up and follows the pointer, the initials gain weight and the role rolls over -->
    <section class="team" aria-labelledby="titolo">
      <header class="head">
        <p class="eyebrow">Pellwood studio</p>
        <h1 class="title" id="titolo">The people behind the work</h1>
      </header>

      <div class="grid" data-grid>
        <article class="card" data-card tabindex="0" data-a="#ff9a7a" data-b="#ffcf8a" data-c="#f7a8d8">
          <div class="portrait">
            <span class="base"></span>
            <span class="blob" data-blob></span>
            <span class="grain"></span>
            <span class="initials" data-initials>MO</span>
          </div>
          <div class="info">
            <h2 class="name">Mara Okafor</h2>
            <p class="role"><span class="roll" data-roll><span>Design lead</span><span>Based in Lisbon</span></span></p>
            <div class="social">
              <a href="#" aria-label="Website" onclick="return false"><svg viewBox="0 0 24 24"><path d="M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 1 0 0-17zM3.5 12h17M12 3.5c2.3 2.3 3.4 5.1 3.4 8.5s-1.1 6.2-3.4 8.5c-2.3-2.3-3.4-5.1-3.4-8.5S9.7 5.8 12 3.5z"/></svg></a>
              <a href="#" aria-label="Email" onclick="return false"><svg viewBox="0 0 24 24"><path d="M4 6.5h16v11H4zM4.5 7l7.5 6 7.5-6"/></svg></a>
            </div>
          </div>
        </article>
        <article class="card" data-card tabindex="0" data-a="#7aa8ff" data-b="#9be3d4" data-c="#c3b4ff">
          <div class="portrait">
            <span class="base"></span>
            <span class="blob" data-blob></span>
            <span class="grain"></span>
            <span class="initials" data-initials>TL</span>
          </div>
          <div class="info">
            <h2 class="name">Theo Lindqvist</h2>
            <p class="role"><span class="roll" data-roll><span>Engineering</span><span>Based in Oslo</span></span></p>
            <div class="social">
              <a href="#" aria-label="Website" onclick="return false"><svg viewBox="0 0 24 24"><path d="M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 1 0 0-17zM3.5 12h17M12 3.5c2.3 2.3 3.4 5.1 3.4 8.5s-1.1 6.2-3.4 8.5c-2.3-2.3-3.4-5.1-3.4-8.5S9.7 5.8 12 3.5z"/></svg></a>
              <a href="#" aria-label="Email" onclick="return false"><svg viewBox="0 0 24 24"><path d="M4 6.5h16v11H4zM4.5 7l7.5 6 7.5-6"/></svg></a>
            </div>
          </div>
        </article>
        <article class="card" data-card tabindex="0" data-a="#a3e08a" data-b="#f2e58c" data-c="#8fd9c2">
          <div class="portrait">
            <span class="base"></span>
            <span class="blob" data-blob></span>
            <span class="grain"></span>
            <span class="initials" data-initials>SR</span>
          </div>
          <div class="info">
            <h2 class="name">Sana Rahimi</h2>
            <p class="role"><span class="roll" data-roll><span>Product</span><span>Based in Montréal</span></span></p>
            <div class="social">
              <a href="#" aria-label="Website" onclick="return false"><svg viewBox="0 0 24 24"><path d="M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 1 0 0-17zM3.5 12h17M12 3.5c2.3 2.3 3.4 5.1 3.4 8.5s-1.1 6.2-3.4 8.5c-2.3-2.3-3.4-5.1-3.4-8.5S9.7 5.8 12 3.5z"/></svg></a>
              <a href="#" aria-label="Email" onclick="return false"><svg viewBox="0 0 24 24"><path d="M4 6.5h16v11H4zM4.5 7l7.5 6 7.5-6"/></svg></a>
            </div>
          </div>
        </article>
        <article class="card" data-card tabindex="0" data-a="#c79bff" data-b="#ff9ec4" data-c="#8ec5ff">
          <div class="portrait">
            <span class="base"></span>
            <span class="blob" data-blob></span>
            <span class="grain"></span>
            <span class="initials" data-initials>JW</span>
          </div>
          <div class="info">
            <h2 class="name">Jonas Weil</h2>
            <p class="role"><span class="roll" data-roll><span>Brand &amp; type</span><span>Based in Berlin</span></span></p>
            <div class="social">
              <a href="#" aria-label="Website" onclick="return false"><svg viewBox="0 0 24 24"><path d="M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 1 0 0-17zM3.5 12h17M12 3.5c2.3 2.3 3.4 5.1 3.4 8.5s-1.1 6.2-3.4 8.5c-2.3-2.3-3.4-5.1-3.4-8.5S9.7 5.8 12 3.5z"/></svg></a>
              <a href="#" aria-label="Email" onclick="return false"><svg viewBox="0 0 24 24"><path d="M4 6.5h16v11H4zM4.5 7l7.5 6 7.5-6"/></svg></a>
            </div>
          </div>
        </article>
      </div>
    </section>
    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 12l-6.3 1.5-3.4 5.8z"/></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 “Glowing team cards” 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 white background is the team section of Pellwood, a made-up design studio: a grey line with the studio’s name, the headline The people behind the work and, below, four white cards with wide corners and a barely visible border. Instead of a photo each card has a square tile with a gradient of three pastel colours, washed out and with light grain, and the person’s initials in large, thin type; below, the name, the role in grey and two small drawn icons, website and email. When the pointer reaches a card, the card lifts four pixels, one pixel too far, and settles, its shadow spreading underneath; the gradient lights up, blurs and chases the pointer inside the tile with a slight delay; the initials gain weight and widen a little; the role rolls up and gives way to the city, Based in Lisbon; the two icons rise a pixel one after the other; the border picks up a violet light on the pointer’s side. The other three cards dim a little. Pressed, the card squashes and springs back. A drawn pointer passes over the four cards one after another, presses one and leaves.

How it works

Three colours per person

Each card carries its three colours in the data-a, data-b, data-c attributes, which the script passes to the CSS as variables. The same trio makes the resting gradient, faded to 32% and desaturated, and the patch of light: three overlapping radial gradients inside a circle blurred by 18 pixels.

The light that chases

The patch is an element larger than the tile, moved by GSAP towards where the pointer is (55% of the distance from the centre). Every frame it covers part of the remaining way, computed from the frame time: the same delay at 60 and at 120 Hz.

The border on the pointer’s side

The border is a one pixel ring cut with a mask (mask-composite) out of a radial light placed at the pointer, in card coordinates. So only the closest piece of border lights up.

Weight, roll and settle

The initials go from 320 to 720 in weight and from 100 to 106 in width through the font’s variables; role and city sit one above the other in a clipping line and move up by half its height; the card lifts with back.out, which carries it one pixel past its target before it settles.

Values to change

NameFileDefaultWhat it changes
GLOWscript.js0.95How bright the gradient gets under the pointer.
FOLLOW_LAGscript.js0.86How far the gradient lags behind the pointer.
LIFTscript.js4How many pixels the card lifts on hover.
DIMscript.js0.62How visible the other cards stay while one is hovered.
WEIGHT_FROMscript.js320The weight of the initials at rest.
WEIGHT_TOscript.js720The weight of the initials on hover.
BORDER_GLOWscript.js1How much the border lights up on the pointer’s side.
ACCENTscript.js'#7c6cff'The colour of the light on the border.

Try them in the Playground

When to use it

For the About page or the team section of a studio, an agency or a startup, when the people’s photos are not there yet or are not wanted: the gradient stands in for the portrait and the hover gives everyone their moment.

On phones

The cards become four on two columns, with a slightly shorter tile, so they all fit the box; a tap does what hover does. One icon per card remains.

With reduced motion

Nothing moves: the card does not lift, the gradient lights up in the middle of the tile with a fade and the role gives way to the city with a fade; the initials still gain weight.

Pitfalls

  • GSAP writes its own inline transform: the card lifts with GSAP, so no translate in the card’s CSS, or they cancel each other out.
  • The patch of light must be larger than the tile and moved with x and y, not background-position: that way the blur stays soft at the edges and the movement runs on the GPU.
  • Between two cards lies the grid gap: if the card switched off there, the others would flicker on every pass. The card stays lit while the pointer is inside the grid and only switches off on leaving it.
  • mask-composite also needs the prefixed form (-webkit-mask-composite: xor) for Safari.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.5 KB; the libraries: GSAP 28 KB.

Testing

Tested on 26 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 animations