Skip to content
animorio
IT
Back to the library

Conference floor plan

Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 8.3 KBGSAP 28 KBFreeDownload the zip

The level 1 map of Wendmere Forum, a made-up design conference, in the premium style of product pieces: six rooms drawn in SVG on a gridded floor, each tinted blue the fuller it is. Pointing at a room lights its outline, the name gains weight, the card below rolls to what is on inside (title, time, speaker, seats with a bar that fills on a spring) and the walking route draws itself along the corridor from «You are here» to the door, with a ring and the minutes pill. Now and Next swap the sessions: the thumb slides, the tints change room by room and the card follows.

The code

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>
<!--
  "Conference 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>The conference floor plan with rooms that light up and the route that draws itself</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>
    <!-- the floor plan of a made-up design conference: every room is a shape you can point at; the room lights up,
         the card below says what is on there now or next, and the walking route draws itself from «You are here» -->
    <section class="map" data-map aria-label="Venue map, level 1">
      <header class="map__top">
        <div class="brand">
          <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 15.5 7.2 5l2.8 7 2.8-7L17 15.5" /></svg>
          <span class="brand__name">Wendmere Forum</span>
          <span class="brand__sub">Level 1</span>
        </div>
        <div class="seg" data-seg role="tablist" aria-label="Show sessions">
          <span class="seg__thumb" data-thumb aria-hidden="true"></span>
          <button class="seg__btn is-on" type="button" role="tab" aria-selected="true" data-when="now">Now <span class="seg__time">14:20</span></button>
          <button class="seg__btn" type="button" role="tab" aria-selected="false" data-when="next">Next <span class="seg__time">15:00</span></button>
        </div>
      </header>

      <div class="plan">
        <svg class="plan__svg" data-svg viewBox="0 0 400 262" role="img" aria-label="Floor plan with six rooms">
          <defs>
            <pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse">
              <path d="M10 0H0V10" class="grid" />
            </pattern>
          </defs>
          <rect class="floor" x="8" y="8" width="384" height="246" rx="14" />
          <rect x="8" y="8" width="384" height="246" rx="14" fill="url(#grid)" />
          <path class="corridor" d="M20 98h364v54H190v100h-50V152H20z" />
          <g data-rooms></g>
          <path class="route" data-route d="" />
          <g data-route-end-pos>
            <g class="route-end" data-route-end>
              <circle class="route-end__ring" r="5.5" />
            </g>
          </g>
          <g data-walk-pos>
            <g class="walk" data-walk>
              <rect class="walk__bg" data-walk-bg x="0" y="-9" width="52" height="18" rx="9" />
              <text class="walk__txt" data-walk-txt x="26" y="3.6" text-anchor="middle">1 min</text>
            </g>
          </g>
          <g class="here" transform="translate(165 240)">
            <circle class="here__halo" r="9" />
            <circle class="here__dot" r="4.2" />
            <text class="here__txt" x="12" y="3.6">You are here</text>
          </g>
        </svg>
      </div>

      <div class="info" data-info aria-live="polite">
        <span class="info__avatar" data-avatar aria-hidden="true"><span data-ini>IO</span></span>
        <div class="info__text">
          <div class="line"><span class="info__title" data-title>Designing for slow software</span></div>
          <div class="line"><span class="info__meta" data-meta>Hall A · 14:00 to 14:45 · Ines Okoro</span></div>
        </div>
        <div class="seats" data-seats>
          <div class="line"><span class="seats__num" data-seats-num>164 of 220</span></div>
          <span class="seats__bar" aria-hidden="true"><span class="seats__fill" data-fill></span></span>
        </div>
      </div>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5 18.5 12l-6 1.4-3 5.6z" /></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>

Playground

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

Or ask your AI assistant for it

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 “Conference floor plan” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm background sits the white map card: at the top the brand with the drawn W, Wendmere Forum and Level 1, on the right the Now 14:20 and Next 15:00 pill. Below, level 1 drawn in SVG: a floor with a thin grid, the darker L-shaped corridor and six rooms with one pixel walls and open doors (Hall A, Studio B, Studio C, Workshop 1, Workshop 2, Lounge); each room has its name, the time or «Free until» in green, and a blue tint that gets stronger the fuller it is. Bottom left the blue «You are here» point. Pointing at a room turns its outline blue, the name gains weight with a small hop and the others fade back; the blue route draws itself from the point along the corridor to the door, where a ring arrives with a bounce and the black pill with the minutes on foot. In the card below the avatar with the initials shrinks and springs back, title and line roll upwards, the seat count changes and the bar fills with a small elastic (orange when the room is almost full); for a free room there is the drawn door and «is free». Now and Next: the white thumb slides on a spring, the tints change room by room and the card follows. A drawn pointer visits a few rooms, switches to Next and back.

How it works

The rooms

Each room is an SVG group with the wall rectangle, a second blue rectangle for the tint, a line in the floor colour for the door, the name and the state. The data (times, speakers, seats) lives in a list with one session for Now and one for Next.

The route

The route is a polyline from the «You are here» point along the middle of the corridor to the door: its length is the sum of the segments, and the stroke-dashoffset drops from that length to zero. The minutes on foot are the length divided by WALK_SPEED.

The card

Title, line and seats sit in rows with hidden overflow: the old text leaves upwards, the new one comes in from below with back.out. The seats bar is a scaleX with elastic.out, orange above 85%.

Now and Next

The white thumb is measured on the chosen button with getBoundingClientRect and slides with back.out; the room tints change with a small delay one after the other.

Values to change

NameFileDefaultWhat it changes
ROUTE_TIMEscript.js0.75How many seconds the route takes to draw itself to the door.
HEATscript.js0.2How strong the blue tint of a full room is.
SPRINGscript.js1.4The bounce of the Now and Next thumb, the avatar and the seats bar.
WALK_SPEEDscript.js110How many plan units are walked in a minute.
ROLLscript.js0.42How many seconds the card text takes to roll to the new room.
IDLEscript.js1.2How many seconds before the drawn pointer starts.
LOOPscript.jstrueThe drawn pointer goes round again and again.

Try them in the Playground

When to use it

On the site of a conference, a festival, a trade fair, a university campus or a school, on the «Getting there» or «The venue» page, in an event app on the day: wherever visitors need to see where to go and what is on in each room right now.

On phones

The card narrows to the full width minus twenty-four pixels and is sized on the height too, so the plan and the card fit on screen; Level 1 disappears under 420 pixels; the rooms respond to a tap.

With reduced motion

No bounces or routes drawing themselves: the route appears whole, the texts change with a fade, the tints and the thumb change at once. The drawn pointer is not shown, the demo still loops.

Pitfalls

  • The route length is the sum of the polyline segments: getTotalLength on a path that has just changed still returns the old length in some browsers.
  • The minutes pill must move inside the plan when the door is close to the right wall, otherwise it leaves the card.
  • The Now and Next thumb is measured again after document.fonts.ready and on every resize: before the font loads the buttons are narrower.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.3 KB; the libraries: GSAP 28 KB.

Testing

Tested on 14 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations