
The colour columns
Hover, SVG
The opening of an AI agent for architects: a house elevation drawn in fine lines between two rulers, with a vertical line, a horizontal line and an orange plus following the pointer and the coordinates in pixels beside it. Dragging opens an orange box, and every error it touches opens its label, while the proposed fix draws itself on the house.
Rebuilt from scratch studying heronaiapp.com by Bearplus, Kenny Ho: the idea is theirs; code, copy and images are ours. Read how it’s made
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>
<!--
"Drawing error finder" 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 selection box that finds the errors in the drawing</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.2.5/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- the opening of Egret, an invented AI agent that checks architects' drawings -->
<main class="pagina">
<section class="palco" data-stage aria-label="House elevation: drag a box over the drawing to find what is missing">
<span class="righello righello--su" aria-hidden="true"></span>
<span class="righello righello--giu" aria-hidden="true"></span>
<span class="righello righello--sx" aria-hidden="true"></span>
<span class="righello righello--dx" aria-hidden="true"></span>
<svg class="angolo angolo--a" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 0v10M0 5h10" /></svg>
<svg class="angolo angolo--b" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 0v10M0 5h10" /></svg>
<svg class="angolo angolo--c" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 0v10M0 5h10" /></svg>
<svg class="angolo angolo--d" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 0v10M0 5h10" /></svg>
<svg class="disegno" data-drawing viewBox="30 62 740 336" preserveAspectRatio="xMidYMid meet" aria-hidden="true">
<defs>
<pattern id="tratteggio" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<line x1="0" y1="0" x2="0" y2="5" />
</pattern>
<pattern id="ombra" width="2.6" height="2.6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<line x1="0" y1="0" x2="0" y2="2.6" />
</pattern>
<pattern id="puntini" width="9" height="9" patternUnits="userSpaceOnUse">
<rect x="4" y="4" width=".8" height=".8" />
</pattern>
</defs>
<g class="alberi" data-trees></g>
<g class="casa">
<!-- ground -->
<path class="terra" d="M40 350H760" />
<!-- plinth and lower volume -->
<rect class="muro" x="250" y="240" width="310" height="110" />
<rect class="muro muro--trat" x="250" y="240" width="310" height="110" />
<rect class="zoccolo" x="244" y="334" width="322" height="16" />
<!-- upper volume, cantilevered -->
<rect class="muro" x="210" y="130" width="390" height="110" />
<rect class="muro muro--trat" x="210" y="130" width="390" height="110" />
<rect class="solaio" x="206" y="236" width="398" height="7" />
<rect class="solaio" x="206" y="126" width="398" height="6" />
<!-- rooftop pavilion and terrace -->
<rect class="muro" x="450" y="78" width="130" height="48" />
<rect class="muro muro--trat" x="450" y="78" width="130" height="48" />
<rect class="solaio" x="446" y="74" width="138" height="5" />
<rect class="vetro" x="462" y="88" width="62" height="38" />
<path class="telaio" d="M482.7 88v38M503.3 88v38" />
<!-- upper glazing -->
<rect class="vetro" x="262" y="148" width="276" height="76" />
<path class="telaio" d="M296.5 148v76M331 148v76M365.5 148v76M400 148v76M434.5 148v76M469 148v76M503.5 148v76M262 192h276" />
<rect class="vetro vetro--cieco" x="552" y="148" width="34" height="76" />
<!-- lower windows and door -->
<rect class="vetro" x="282" y="258" width="160" height="66" />
<path class="telaio" d="M322 258v66M362 258v66M402 258v66" />
<rect class="porta" x="470" y="270" width="20" height="64" />
<path class="telaio" d="M486 300v6" />
<rect class="vetro vetro--cieco" x="508" y="258" width="38" height="66" />
<!-- columns under the cantilever -->
<rect class="pilastro" x="216" y="243" width="7" height="107" />
<rect class="pilastro" x="588" y="243" width="7" height="107" />
<!-- shadows -->
<path class="ombra" d="M250 243H600V262L250 252Z" />
<path class="ombra" d="M560 243H588V350H560Z" />
<path class="ombra" d="M450 126H580L450 112Z" />
<!-- outdoor stair to the upper terrace (no handrail) -->
<path class="scala" data-stair d="" />
<path class="scala-cosciale" d="M112 350L206 243" />
<!-- dimension line -->
<path class="quota" d="M210 374H600M210 368v12M600 368v12" />
<text class="quota-testo" x="405" y="390">18.40 m</text>
</g>
<!-- the fixes Egret proposes, drawn in orange when an error is found -->
<g class="rimedio" data-fix="stair">
<path d="M108 333L202 226M126 333v-21M150 306v-21M174 279v-21M198 252v-21" />
</g>
<g class="rimedio" data-fix="terrace">
<path d="M212 112H446M212 126v-14M241 126v-14M270 126v-14M299 126v-14M328 126v-14M357 126v-14M386 126v-14M415 126v-14M444 126v-14" />
</g>
<g class="rimedio" data-fix="door">
<path d="M462 334V270H498V334M462 360H498M462 355v10M498 355v10" />
</g>
</svg>
<!-- the rulers that follow the pointer -->
<span class="mira mira--v" data-line-v aria-hidden="true"></span>
<span class="mira mira--h" data-line-h aria-hidden="true"></span>
<svg class="piu" data-plus viewBox="0 0 14 14" aria-hidden="true"><path d="M7 0v14M0 7h14" /></svg>
<span class="coord" data-coord aria-hidden="true"><span>X: <b data-x>0</b> PX</span><span>Y: <b data-y>0</b> PX</span></span>
<!-- the error marks and their labels -->
<div class="segni" data-marks></div>
<svg class="puntatore" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13.5 7.4-6 1.6-2.4 5.9z" /></svg>
</section>
<footer class="piede">
<div class="piede__titolo">
<p class="marchio">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 18c3.4 0 5.2-1.6 6.6-4.6L13 8.2c.8-1.7 2.1-2.7 3.9-2.7 1.4 0 2.6.9 3.1 2.2l-3 .6c-1.1.2-1.9.9-2.4 2L12.4 15C11 18 8.4 20 4 20z" /><path d="M10.6 19.5 9.2 22M13.2 18l1.2 4" /></svg>
Egret
</p>
<h1>An AI agent that checks your drawings</h1>
</div>
<div class="piede__stato">
<p class="suggerimento">Click and drag to find what’s missing</p>
<p class="conto" aria-live="polite"><span class="conto__cifra" data-count><span>0</span></span> of 3 found</p>
</div>
</footer>
</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.
28 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 “Drawing error finder” from Animorio and fit it into my siteThe two lines and the plus are not on the pointer: on every frame they cover a fifth of the remaining distance, so they arrive a moment late. They stay 16 pixels from the edges; there the line on that side drops towards zero in steps of a tenth and the plus grows to 1.2, in steps of 0.08. The coordinates written are those of the chasing position, rounded to the pixel.
The box only appears after 2 pixels of dragging, so a click does not open it. The background is a linear-gradient from orange at 64% to transparent at 67.05%, and the angle (315, 225, 45 or 135 degrees) is chosen from the direction: the full colour is always in the corner under the pointer.
On every move the box is compared with the position of each mark, in pixels. The marks live in the drawing’s coordinates (a 740 by 336 viewBox) and are brought to pixels with getScreenCTM, again on every resize; the labels and the guide lines are worked out again too, and pick the free side.
The fixes are SVG paths already in the drawing, with stroke-dasharray equal to their length and a full stroke-dashoffset: once the error is found, the offset goes back to zero in 0.7 seconds, one after the other. The square around the mark and the guide line do the same.
The autopilot is a timeline that moves a point and calls the same functions as the real mouse: press, drag, release. As soon as you touch the demo it stops, and it starts over after eight quiet seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
FOLLOW | script.js | 0.2 | How quickly the rulers catch up with the pointer (1 at once). |
LINE | script.js | 0.16 | How visible the two ruler lines are. |
FADE | script.js | 0.1 | How fast the lines fade out at the edge. |
EDGE | script.js | 16 | How many pixels from the edge the rulers stop. |
PLUS_EDGE | script.js | 1.2 | How much the orange plus grows at the edge. |
THRESHOLD | script.js | 2 | How many pixels to drag before the box appears. |
VEIL | script.js | 0.64 | How strong the orange inside the box is. |
SPRING | script.js | 1.6 | How much the labels bounce when they open. |
HOLD | script.js | 3.5 | How many seconds the found errors stay before the drawn pointer clears them. |
IDLE | script.js | 8 | After how many quiet seconds the drawn pointer starts again. |
For the opening of the site of a tool for architects, engineers or designers, of a product that checks drawings and plans or of an AI app that finds mistakes: you understand what the product does by using it, with a gesture anyone who draws already knows.
The same animation: you drag with a finger, the rulers show while the finger is on the screen, the drawing is sized on both the height and width of the box and the labels pick the side where there is room.
Nothing chases and nothing bounces: rulers and coordinates sit right on the pointer, the labels fade in with the fixes already drawn, and instead of the drawn pointer the errors show themselves, one after the other.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.2.5.
Compressed with gzip, the three demo files weigh 10 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.