
Speeding marquee
Scroll, Text, Hover
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.
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 & 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>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
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 siteEach 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 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 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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
GLOW | script.js | 0.95 | How bright the gradient gets under the pointer. |
FOLLOW_LAG | script.js | 0.86 | How far the gradient lags behind the pointer. |
LIFT | script.js | 4 | How many pixels the card lifts on hover. |
DIM | script.js | 0.62 | How visible the other cards stay while one is hovered. |
WEIGHT_FROM | script.js | 320 | The weight of the initials at rest. |
WEIGHT_TO | script.js | 720 | The weight of the initials on hover. |
BORDER_GLOW | script.js | 1 | How much the border lights up on the pointer’s side. |
ACCENT | script.js | '#7c6cff' | The colour of the light on the border. |
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.
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.
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.
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.
Tested on 26 October 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.