
Woven thread background
Backgrounds, Hover
An animated background for the hero of a heatmap app, on almost black, in the style of Libraries.dev: a dense grid of small grey squares that warm up where the pointer passes, turning a fuller and fuller orange and swelling a little. The heat spreads to the neighbours and cools slowly, so the pointer leaves a trail like a real heat map; a click sends a wave of heat and the headline borrows a little light from the heat under its letters.
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>
<!--
"Warming squares background" 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 background of squares that warm up under the pointer</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>
<!-- the hero of an invented heatmap analytics tool, Warmline, on near black: behind the words, a dense grid of small
squares. Where the pointer passes the squares warm up, from grey to orange, and swell a little; the heat spreads to
the neighbours and cools slowly, leaving a trail like a heat map. A click sends a wave of heat -->
<main class="stage" data-stage>
<canvas class="heat" data-heat aria-hidden="true"></canvas>
<span class="hush" aria-hidden="true"></span>
<section class="hero" aria-labelledby="hero-title">
<p class="pill" data-in>
<span class="pill__tag">Live</span>
<span class="pill__text">Heatmaps in real time</span>
<svg class="pill__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5"></path></svg>
</p>
<h1 class="title" id="hero-title" data-in data-title>See where<br>the heat is</h1>
<p class="lede" data-in>Warmline shows where every visitor lingers, clicks and gives up, square by square, as it happens.</p>
<div class="actions" data-in>
<button class="cta" type="button" data-cta>
<span class="cta__glow" aria-hidden="true"></span>
<span class="cta__label">Start tracking</span>
<svg class="cta__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.5 4 12.5 8l-4 4"></path></svg>
</button>
<span class="note">No cookies needed</span>
</div>
</section>
<svg class="ghost" data-ghost viewBox="0 0 20 20" aria-hidden="true"><path d="M4 2.5v13.2l3.5-3.3 2.4 5.3 2.3-1-2.4-5.2 4.8-.2z"></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>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.
24 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 “Warming squares background” from Animorio and fit it into my siteEvery square is a number between zero and one in a Float32Array: its heat. The grid is recomputed on resize, with slightly smaller cells on the phone, and the heat already there is kept. A second array holds the size of every square, which chases its right size one step at a time: so a square swells and settles instead of jumping.
On every frame the pointer warms the cells around it with a Gaussian bell on the distance. The amount grows with the speed of the hand and on the button, and is multiplied by how far the cell is from one, so a hot square fills up more and more slowly and never goes past. The warm spot follows the pointer a moment late, so the trail gets longer when the hand moves fast.
Then every cell moves a little towards the average of its four neighbours, and is multiplied by an exponential of time that cools it. Two arrays swap on every frame, one read and one written, so the heat spreads the same way in every direction. Below three thousandths it is set to zero, so the grid really goes cold again.
The colours are fourteen steps computed once from the :root colours: the first ones grey, then a fuller and fuller orange, the last ones with a touch of white. On every frame the squares of a step are gathered into a single path of rectangles and filled with one fill: fourteen fills at most, even with thousands of squares.
A click adds a wave: a ring that grows and warms the cells near its edge, less and less until it goes out. The headline is split into one span per letter; each letter reads the heat of the cell under it and chases it, getting lighter and taking an orange halo. The values are rounded to fortieths, so the page only updates when something really changes.
| Name | File | Default | What it changes |
|---|---|---|---|
CELL | script.js | 14 | The side of each cell of the grid, in pixels. |
RADIUS | script.js | 62 | How wide the pointer’s patch of heat is, in pixels. |
WARM | script.js | 5.5 | How fast the pointer warms the squares. |
SPREAD | script.js | 0.55 | How much the heat spreads to the neighbours (0 stays where it is). |
COOL | script.js | 0.45 | How fast it cools: higher, the trail is shorter. |
SWELL | script.js | 0.35 | How much the hottest squares swell (0 they keep the same size). |
WAVE | script.js | 1 | How strong the click’s heat wave is (0 turns it off). |
AUTO_PILOT | script.js | 3 | After how many seconds without a pointer the drawn one moves (0 never). |
As the background of the first screen of an app or a piece of software on a dark background, especially one about data, analytics, heat maps, visitors or temperature: the grid is the page of the site and the pointer is the visitor warming it.
The same heat at adapted sizes: the cells are a little smaller, the patch narrower, the headline goes on two smaller lines. A sliding finger warms the squares and a tap sends the wave.
The squares all keep the same size and the heat does not travel: under the pointer they only change colour, from grey to orange, and cool where they are. No wave, no squares lighting up by themselves and no drawn pointer; the letters get lighter without moving.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.1 KB; the libraries: GSAP 28 KB.
Tested on 27 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.