
The colour columns
Hover, SVG
The listings card of an invented home search app, Mosswell: every home for sale in the neighbourhood is a point, size across and price up, with the dashed trend line through them. Hovering a point, it swells with a ring, dashed guides drop to both axes with their tags and a glass card opens with the address, the size, the price and the price per square metre against the area. Dragging draws a box: the homes inside turn blue one after the other with a small pop, the others fade back, the counter at the top rolls to ‘12 of 48’ and the averages below roll to their new values. Clear lets them all go. Clean, like a product shot.
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>
<!--
"Homes scatter chart" 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 homes scatter chart with a box selection that lights up the points</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>
<!-- one gesture: drag a box. The listings card of a made-up home search app, Mosswell: every home on sale in a
neighbourhood is a point (size across, price up). Hovering a point shows its card and the dashed guides to the
axes; dragging draws a box that lights up the homes inside, fades the others and rolls the summary below -->
<section class="card" data-card aria-label="Mosswell listings in Northfield">
<header class="card__head">
<span class="card__brand">
<svg class="card__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M3.5 9.2 10 3.8l6.5 5.4V16a.8.8 0 0 1-.8.8H4.3a.8.8 0 0 1-.8-.8Z"></path>
<path d="M8 16.8v-4.6h4v4.6"></path>
</svg>
<span class="card__name">Mosswell</span>
<span class="card__where">Northfield · for sale</span>
</span>
<span class="card__count" data-count><b data-count-n>48</b> <span data-count-of>homes</span></span>
</header>
<div class="plot" data-plot>
<svg class="plot__svg" data-svg aria-hidden="true">
<g data-grid></g>
<g data-axes></g>
<g class="trend" data-trend-g><path class="trend__line" data-trend></path></g>
<g data-guides>
<line class="guide" data-guide-x></line>
<line class="guide" data-guide-y></line>
</g>
<g data-dots></g>
<g class="brush" data-brush>
<rect class="brush__fill" data-brush-rect></rect>
<rect class="brush__h" data-h="0" width="7" height="7" rx="2"></rect>
<rect class="brush__h" data-h="1" width="7" height="7" rx="2"></rect>
<rect class="brush__h" data-h="2" width="7" height="7" rx="2"></rect>
<rect class="brush__h" data-h="3" width="7" height="7" rx="2"></rect>
</g>
</svg>
<span class="axis-tag axis-tag--x" data-tag-x></span>
<span class="axis-tag axis-tag--y" data-tag-y></span>
<span class="brush-label" data-brush-label></span>
<div class="tip" data-tip role="status">
<span class="tip__title" data-tip-title></span>
<span class="tip__row"><span data-tip-size></span><span class="tip__dot"></span><span data-tip-price></span></span>
<span class="tip__per" data-tip-per></span>
</div>
<span class="plot__unit plot__unit--y">€k</span>
<span class="plot__unit plot__unit--x">m²</span>
</div>
<footer class="sum" data-sum>
<div class="sum__item"><span class="sum__k">Average</span><span class="sum__v" data-avg>€5,210/m²</span></div>
<div class="sum__item"><span class="sum__k">Median price</span><span class="sum__v" data-med>€398k</span></div>
<span class="sum__hint" data-hint>Drag across the chart to compare</span>
<button class="clear" type="button" data-clear aria-label="Clear selection"><span class="clear__in">
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3 3 9"></path></svg>Clear</span></button>
</footer>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 3.2 18.6 13l-6 .9 3.4 6.6-2.6 1.3-3.4-6.6L5.6 19Z"></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.
30 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 “Homes scatter chart” from Animorio and fit it into my siteThe SVG takes the size of its box and is rebuilt on resize: rules, axis numbers, trend line and points are written in pixels, so the points stay round and the selection box matches the pointer at any width.
The forty-eight homes come from a pseudo-random generator with a fixed seed: they are always the same. The trend line is the least squares line through all of them, and each home’s price per square metre is compared with the area’s average to write ‘below’ or ‘above’.
On hover the nearest point within eighteen pixels is found: it swells on a spring, a ring widens and fades, the two guides and the axis tags move to it and the glass card follows on a spring, flipping over when it would leave the edge.
Pressing starts the box; on every move the homes inside are checked and only those that change state animate: inside they turn blue with a hop, in order of distance from the starting corner, outside they fade. The counter at the top follows live; on release, the averages roll to their new values.
Left alone, a GSAP timeline moves a drawn arrow and calls the same functions as the real mouse: it hovers a home, draws a box, reads it and presses Clear. As soon as a mouse or a finger is used it stops, and starts again after six quiet seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
HOMES | script.js | 48 | How many homes (points) are on the chart. |
DOT | script.js | 4.6 | The radius of a point, in pixels. |
POP | script.js | 1.55 | How much a point grows when the box catches it. |
FADE | script.js | 0.28 | How visible the homes outside the box stay (0 to 1). |
ENTRY_STAGGER | script.js | 0.022 | Seconds between a point and the next one coming in. |
SPRING | script.js | 1.6 | The bounce of the points and of the card (higher bounces more). |
ROLL | script.js | 0.6 | Seconds for the numbers to roll to their new value. |
IDLE | script.js | 1.6 | Seconds before the drawn pointer starts. |
LOOP | script.js | true | The drawn pointer plays the card again and again. |
For a property listings site or app, an agency dashboard, a report on the prices of a neighbourhood or any page comparing many things on two numbers (products by price and rating, runs by distance and time).
The same animation with adapted sizes: the card is as wide as the box, the chart is measured on the height too, the glass card stays inside and a finger drags the box; the neighbourhood name hides.
No hops, no springs, no rolling numbers: the homes are already in place, the box lights and dims the points without animation and the numbers change at once; the drawn pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.4 KB; the libraries: GSAP 28 KB.
Tested on 14 November 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.