
The colour columns
Hover, SVG
The floor plan of Casa Albe, a made-up holiday home in Polignano a Mare with its sea suite and bedroom, in the premium style of Dribbble shots for rental sites: the walls in thin lines draw themselves, then the windows, the doors, the furniture and the names. Under the pointer a room lights up with its floor (parquet, tiles, decking), the sunlight comes in through its window and stretches across the floor, the door opens like a fan and overshoots by a hair, the sun on the compass turns to its side and the needle trembles, and the card beside it changes on a spring: the name, the square metres counting, the light of the room and three things in it (king bed, tub, sea-view terrace).
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>
<!--
"Suite floor plan" 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>Casa Albe, the sea suite floor plan</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 floor plan of a made-up holiday suite, Casa Albe. The walls draw themselves in thin lines; under the pointer a
room lights up with its name and its square metres, its door opens like a fan, the sun comes in through its window,
the sun on the compass moves to that side, and the card beside the plan changes on a spring -->
<div class="suite" data-suite>
<section class="sheet" aria-label="Floor plan">
<header class="sheet__head">
<p class="sheet__title">Floor plan</p>
<p class="sheet__meta">Level 2 <span class="sep">·</span> sea side</p>
</header>
<svg class="plan" data-plan viewBox="0 0 320 204" role="img" aria-label="Floor plan of the Casa Albe sea suite">
<defs>
<pattern id="planks" width="7" height="7" patternUnits="userSpaceOnUse"><path d="M0 0V7" class="pat"></path></pattern>
<pattern id="tiles" width="7.5" height="7.5" patternUnits="userSpaceOnUse"><path d="M0 0H7.5M0 0V7.5" class="pat"></path></pattern>
<pattern id="deck" width="40" height="5" patternUnits="userSpaceOnUse"><path d="M0 0H40M20 0V5" class="pat"></path></pattern>
<clipPath id="c-living"><rect x="10" y="10" width="160" height="130"></rect></clipPath>
<clipPath id="c-bath"><rect x="170" y="10" width="110" height="45"></rect></clipPath>
<clipPath id="c-bedroom"><rect x="170" y="55" width="110" height="85"></rect></clipPath>
<clipPath id="c-terrace"><rect x="10" y="140" width="270" height="46"></rect></clipPath>
<linearGradient id="g-living" gradientUnits="userSpaceOnUse" x1="93" y1="140" x2="148" y2="40"><stop offset="0" class="sun0"></stop><stop offset="1" class="sun1"></stop></linearGradient>
<linearGradient id="g-bath" gradientUnits="userSpaceOnUse" x1="280" y1="32" x2="176" y2="42"><stop offset="0" class="sun0"></stop><stop offset="1" class="sun1"></stop></linearGradient>
<linearGradient id="g-bedroom" gradientUnits="userSpaceOnUse" x1="280" y1="96" x2="170" y2="74"><stop offset="0" class="sun0"></stop><stop offset="1" class="sun1"></stop></linearGradient>
<linearGradient id="g-terrace" gradientUnits="userSpaceOnUse" x1="145" y1="186" x2="125" y2="140"><stop offset="0" class="sun0"></stop><stop offset="1" class="sun1"></stop></linearGradient>
</defs>
<!-- floors: a warm tint, the floor pattern of each room and the sun beam from its window -->
<g class="floors">
<g class="floor" data-floor="living" clip-path="url(#c-living)"><rect class="floor__tint" x="10" y="10" width="160" height="130"></rect><rect class="floor__pat" x="10" y="10" width="160" height="130" fill="url(#planks)"></rect><polygon class="beam" data-beam fill="url(#g-living)" points="0,0"></polygon></g>
<g class="floor" data-floor="bath" clip-path="url(#c-bath)"><rect class="floor__tint" x="170" y="10" width="110" height="45"></rect><rect class="floor__pat" x="170" y="10" width="110" height="45" fill="url(#tiles)"></rect><polygon class="beam" data-beam fill="url(#g-bath)" points="0,0"></polygon></g>
<g class="floor" data-floor="bedroom" clip-path="url(#c-bedroom)"><rect class="floor__tint" x="170" y="55" width="110" height="85"></rect><rect class="floor__pat" x="170" y="55" width="110" height="85" fill="url(#planks)"></rect><polygon class="beam" data-beam fill="url(#g-bedroom)" points="0,0"></polygon></g>
<g class="floor" data-floor="terrace" clip-path="url(#c-terrace)"><rect class="floor__tint" x="10" y="140" width="270" height="46"></rect><rect class="floor__pat" x="10" y="140" width="270" height="46" fill="url(#deck)"></rect><polygon class="beam" data-beam fill="url(#g-terrace)" points="0,0"></polygon></g>
</g>
<!-- the sea under the terrace -->
<g class="sea" aria-hidden="true">
<path data-wave d="M14 193.5c6-2.4 10-2.4 16 0s10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0"></path>
<path data-wave d="M30 199.5c6-2.4 10-2.4 16 0s10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0 10 2.4 16 0 10-2.4 16 0"></path>
</g>
<!-- furniture, thin lines, one group per room -->
<g class="furn" data-furn="living">
<rect x="11.5" y="34" width="13" height="82" rx="1"></rect>
<circle cx="18" cy="48" r="2.4"></circle><circle cx="18" cy="56" r="2.4"></circle><circle cx="18" cy="64" r="1.8"></circle>
<rect x="13.6" y="88" width="8.8" height="15" rx="2.6"></rect>
<rect x="38" y="58" width="14" height="44" rx="1.6"></rect>
<circle cx="104" cy="34" r="10"></circle>
<rect x="99" y="18.5" width="10" height="4" rx="1.2"></rect><rect x="99" y="45.5" width="10" height="4" rx="1.2"></rect>
<rect x="88.5" y="29" width="4" height="10" rx="1.2"></rect><rect x="115.5" y="29" width="4" height="10" rx="1.2"></rect>
<path d="M92 124V108a3 3 0 0 1 3-3h50a3 3 0 0 1 3 3v16Z"></path><path d="M92 118h56M98 105v13M142 105v13"></path>
<circle cx="120" cy="91" r="6.5"></circle>
<rect x="152" y="82" width="12" height="13" rx="3"></rect>
</g>
<g class="furn" data-furn="bath">
<rect x="236" y="15" width="40" height="22" rx="10"></rect><rect x="239.5" y="18.5" width="33" height="15" rx="7.5"></rect>
<circle cx="243" cy="26" r="0.9"></circle>
<ellipse cx="205" cy="16.5" rx="8" ry="4"></ellipse><path d="M197 13h16"></path>
<rect x="252" y="41" width="12" height="12" rx="1.6"></rect><path d="M252 41l12 12M264 41l-12 12"></path>
</g>
<g class="furn" data-furn="bedroom">
<rect x="202" y="57" width="48" height="52" rx="2"></rect>
<rect x="205" y="60" width="19" height="9" rx="2.6"></rect><rect x="228" y="60" width="19" height="9" rx="2.6"></rect>
<path d="M202 80h48M202 84h48"></path>
<rect x="190" y="58" width="9" height="9" rx="1.4"></rect><rect x="253" y="58" width="9" height="9" rx="1.4"></rect>
<circle cx="194.5" cy="62.5" r="2"></circle><circle cx="257.5" cy="62.5" r="2"></circle>
<rect x="262" y="124" width="14" height="12" rx="1.6"></rect>
</g>
<g class="furn" data-furn="terrace">
<path d="M200 179v-24l3-3h8l3 3v24Z"></path><path d="M200 159h14"></path>
<path d="M222 179v-24l3-3h8l3 3v24Z"></path><path d="M222 159h14"></path>
<circle cx="62" cy="163" r="7"></circle><rect x="46" y="159" width="5" height="8" rx="1.4"></rect><rect x="73" y="159" width="5" height="8" rx="1.4"></rect>
<rect x="258" y="148" width="16" height="16" rx="1.6"></rect><circle cx="266" cy="156" r="1.4"></circle>
<circle cx="18" cy="150" r="4"></circle><circle cx="18" cy="177" r="4"></circle>
</g>
<!-- walls, windows, glass and the railing come from script.js -->
<g class="glass" data-glass></g>
<g class="walls" data-walls></g>
<g class="rail" data-rail></g>
<!-- the sliding glass of the living room, it slides open for the terrace -->
<g class="slide">
<path class="slide__fixed" d="M36 138.8H94"></path>
<path class="slide__move" data-slide d="M92 141.2H150"></path>
</g>
<!-- the doors open like a fan: the sector, the leaf and the hinge -->
<g class="doors">
<g class="door" data-door="living"><path class="door__fan" data-fan></path><path class="door__arc" data-arc></path><path class="door__leaf" data-leaf></path></g>
<g class="door" data-door="bath"><path class="door__fan" data-fan></path><path class="door__arc" data-arc></path><path class="door__leaf" data-leaf></path></g>
<g class="door" data-door="bedroom"><path class="door__fan" data-fan></path><path class="door__arc" data-arc></path><path class="door__leaf" data-leaf></path></g>
</g>
<!-- room names and areas -->
<g class="labs">
<g class="lab" data-lab="living"><text class="lab__name" x="110" y="68" text-anchor="middle">Living & kitchen</text><text class="lab__area" x="110" y="77" text-anchor="middle">33 m²</text></g>
<g class="lab" data-lab="bath"><text class="lab__name" x="221" y="36" text-anchor="middle">Bath</text><text class="lab__area" x="221" y="44" text-anchor="middle">8 m²</text></g>
<g class="lab" data-lab="bedroom"><text class="lab__name" x="226" y="122" text-anchor="middle">Bedroom</text><text class="lab__area" x="226" y="131" text-anchor="middle">15 m²</text></g>
<g class="lab" data-lab="terrace"><text class="lab__name" x="134" y="162" text-anchor="middle">Terrace</text><text class="lab__area" x="134" y="171" text-anchor="middle">20 m²</text></g>
</g>
<!-- the compass with the sun on its ring, and the scale -->
<g class="compass" data-compass transform="translate(300 26)">
<circle class="compass__ring" r="12"></circle>
<path class="compass__ticks" d="M0-12v2.6M12 0h-2.6M0 12v-2.6M-12 0h2.6"></path>
<g data-needle><path class="compass__n" d="M0-8.4 2.2 0H-2.2Z"></path><path class="compass__s" d="M0 8.4 2.2 0H-2.2Z"></path></g>
<text class="compass__lab" y="-15.5" text-anchor="middle">N</text>
<g class="compass__sun" data-sun><circle r="2.3"></circle><path d="M0-4.4v-1.4M0 4.4v1.4M-4.4 0h-1.4M4.4 0h1.4M-3.1-3.1l-1 -1M3.1 3.1l1 1M-3.1 3.1l-1 1M3.1-3.1l1-1"></path></g>
</g>
<g class="scale" transform="translate(288 66)">
<path d="M0 0h25M0-2v4M12.5-1.4v2.8M25-2v4"></path>
<text x="12.5" y="9" text-anchor="middle">1 m</text>
</g>
<!-- the hit areas, on top -->
<g class="hits">
<rect data-hit="living" x="10" y="10" width="160" height="130"></rect>
<rect data-hit="bath" x="170" y="10" width="110" height="45"></rect>
<rect data-hit="bedroom" x="170" y="55" width="110" height="85"></rect>
<rect data-hit="terrace" x="10" y="140" width="270" height="50"></rect>
</g>
</svg>
</section>
<aside class="info" data-info aria-live="polite">
<span class="info__sheen" aria-hidden="true"></span>
<header class="info__head">
<svg class="info__mark" viewBox="0 0 24 24" aria-hidden="true"><rect x="2.5" y="2.5" width="19" height="19" rx="6"></rect><path d="M6.5 15.5h11M8.6 15.5a3.4 3.4 0 0 1 6.8 0M12 8.2v1.6M8 10l.9.9M16 10l-.9.9"></path></svg>
<div>
<p class="info__brand">Casa Albe</p>
<p class="info__where">Sea suite <span class="sep">·</span> Polignano a Mare</p>
</div>
</header>
<div class="room">
<p class="room__light" data-bit><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.8"></circle><path d="M8 1.8v1.6M8 12.6v1.6M1.8 8h1.6M12.6 8h1.6M3.6 3.6l1.1 1.1M11.3 11.3l1.1 1.1M3.6 12.4l1.1-1.1M11.3 4.7l1.1-1.1"></path></svg><span data-light>Morning sun</span><span class="sep">·</span><span data-side>East</span></p>
<div class="room__row" data-bit>
<h2 class="room__name" data-name>Bedroom</h2>
<p class="room__area"><span data-area>15</span><span class="room__unit">m²</span></p>
</div>
<ul class="feats" data-feats></ul>
</div>
<footer class="info__foot">
<p class="total"><span>56 m²</span><span class="sep">+</span><span>20 m² terrace</span><span class="sep">·</span><span>Sleeps 4</span></p>
<div class="book">
<p class="price"><span class="price__n">€240</span><span class="price__u">/ night</span></p>
<button type="button" class="cta" data-cta><span class="cta__bg"></span><span class="cta__label">Check dates</span><svg class="cta__arr" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.6M8.6 4.4 12.2 8l-3.6 3.6"></path></svg></button>
</div>
</footer>
</aside>
</div>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.
47 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 “Suite floor plan” from Animorio and fit it into my siteEach piece of wall is an SVG line made by script.js with pathLength="1", stroke-dasharray 1 1 and stroke-dashoffset 1: GSAP takes the offset to 0 with a stagger, outer walls first and inner ones after. With autoRound off in gsap.defaults the stroke runs smoothly instead of jumping from empty to full.
Each room has its window (two points) and the direction of the light: the beam is a polygon made of the two window points and the same points moved along the direction by t, with t taken from 0 to 1 by GSAP with expo.out. A clipPath the size of the room cuts it at the walls and a linear gradient fades it out.
The door is a hinge, a radius and two angles: every frame rewrites the leaf, the dashed arc and the filled sector, while GSAP takes the opening from ajar to open with back.out. The sun on the compass goes round the ring the short way and the needle gets a small knock with elastic.out.
| Name | File | Default | What it changes |
|---|---|---|---|
DRAW | script.js | 1.6 | How long the walls take to draw themselves, in seconds. |
SUN | script.js | 1.1 | How long the sun takes to come in through the window, in seconds. |
DOOR | script.js | 1 | How far the door of the lit room opens (1 fully, 0 it stays ajar). |
SPRING | script.js | 1.8 | How much the card overshoots when it changes room (1 for none). |
TINT | script.js | 0.1 | How warm the floor of the lit room gets. |
PAUSE | script.js | 2.2 | Left alone: how many seconds it stays on each room. |
LOOP | script.js | true | Left alone, a pointer goes from room to room. |
--accent | style.css | #e3893c | The orange of the sun, the floors and the lit windows. |
--sea | style.css | #4f9aa3 | The colour of the sea waves under the terrace. |
--bg | style.css | #f2eee7 | The warm white of the ground. |
For the page of a holiday home, a hotel suite or a flat to rent: whoever moves over the plan understands how the place is laid out, how big each room is, where the sun comes in and what is inside, without opening ten photos.
The same animation with adapted measures: on the phone the plan sits on top and the card below, shorter, with the three things of the room in a row; everything is sized on width and height together. You tap a room to light it.
No movement: the walls are already drawn, the room lights up with a fade, the sun is already in, the door is already open and the card changes with a fade.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP 28 KB.
Tested on 16 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.