Skip to content
animorio
IT
All components

Room Wi-Fi card

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

The room Wi-Fi card of Casa Merla, a made-up hotel, alone on white in the premium product style. Copy the password and the letters lift in a wave while a light crosses the field and the icon turns into a tick; switch to QR code and the squares of the code build from the centre out; press Join Wi-Fi and the signal arcs light from the inside out while the button fills, then they stay lit, the speed rolls up to 480 Mbps and the card says Online.

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>
<!--
  "Room Wi-Fi card" 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 room Wi-Fi card with the password to copy and the QR that builds itself</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the guest Wi-Fi card of a made-up hotel room: copy the password (the letters lift in a wave and a light
         crosses the field), switch to the QR code (the squares build from the centre out), or join the network
         (the arcs light from the inside out, the speed rolls up and the card says you are online) -->
    <section class="wifi" data-wifi aria-label="Guest Wi-Fi">
      <span class="wifi__glow" data-glow aria-hidden="true"></span>
      <span class="wifi__edge" aria-hidden="true"></span>

      <header class="head">
        <span class="mark" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M5 19V8.5L12 4l7 4.5V19" /><path d="M9.5 19v-5h5v5" /></svg>
        </span>
        <span class="head__txt">
          <span class="head__name" data-brand>Casa Merla</span>
          <span class="head__sub">Room <b data-room>214</b> · Guest Wi-Fi</span>
        </span>
        <span class="chip" data-chip><span class="chip__roll" data-chiproll><span class="chip__line">Offline</span></span></span>
      </header>

      <div class="net">
        <svg class="arcs" viewBox="0 0 64 52" aria-hidden="true" data-arcs>
          <defs>
            <linearGradient id="arcLit" x1="0" y1="0" x2="0" y2="1">
              <stop offset="0" stop-color="#3f8f7f" />
              <stop offset="1" stop-color="#1f5f54" />
            </linearGradient>
          </defs>
          <path class="arc arc--track" d="M4 20.5a40 40 0 0 1 56 0" />
          <path class="arc arc--track" d="M12.5 29a28 28 0 0 1 39 0" />
          <path class="arc arc--track" d="M21 37.5a16 16 0 0 1 22 0" />
          <path class="arc arc--lit" data-arc d="M21 37.5a16 16 0 0 1 22 0" />
          <path class="arc arc--lit" data-arc d="M12.5 29a28 28 0 0 1 39 0" />
          <path class="arc arc--lit" data-arc d="M4 20.5a40 40 0 0 1 56 0" />
          <path class="wedge" data-wedge d="M27.6 44.2 32 48.6l4.4-4.4a6.2 6.2 0 0 0-8.8 0Z" />
        </svg>
        <span class="net__txt">
          <span class="net__name" data-ssid>CasaMerla-Guest</span>
          <span class="net__meta" data-meta><span class="net__line">5 GHz · WPA3 · Floor 2</span></span>
        </span>
        <span class="speed" data-speed aria-hidden="true">
          <span class="speed__num" data-speednum>0</span><span class="speed__unit">Mbps</span>
        </span>
      </div>

      <div class="tabs" role="tablist" aria-label="How to join">
        <span class="tabs__pill" data-pill aria-hidden="true"></span>
        <button class="tab is-on" type="button" role="tab" aria-selected="true" data-tab="pass">Password</button>
        <button class="tab" type="button" role="tab" aria-selected="false" data-tab="qr">QR code</button>
      </div>

      <div class="panel">
        <div class="view view--pass" data-view="pass" role="tabpanel">
          <div class="field" data-field>
            <span class="field__clip" aria-hidden="true"><span class="field__sweep" data-sweep></span></span>
            <span class="field__pw" data-pw aria-label="Password"></span>
            <button class="copy" type="button" data-copy aria-label="Copy password">
              <svg class="copy__icon" viewBox="0 0 20 20" aria-hidden="true">
                <g class="copy__sheets" data-sheets>
                  <rect x="7" y="7" width="9.5" height="9.5" rx="2.4" />
                  <path d="M13 4.6V4.4A1.9 1.9 0 0 0 11.1 2.5H5.4A1.9 1.9 0 0 0 3.5 4.4v5.7a1.9 1.9 0 0 0 1.9 1.9h.2" />
                </g>
                <path class="copy__tick" data-tick d="M5.2 10.4 8.4 13.4 14.8 6.8" />
              </svg>
            </button>
            <span class="toast" data-toast aria-live="polite">Copied</span>
          </div>
          <span class="note"><span data-count>16</span> characters · case sensitive</span>
        </div>

        <div class="view view--qr" data-view="qr" role="tabpanel" aria-hidden="true">
          <span class="qr__tile"><svg class="qr" data-qr viewBox="0 0 25 25" aria-label="QR code to join the network"></svg></span>
          <span class="qr__txt">
            <span class="qr__title">Point your camera here</span>
            <span class="qr__sub">Joins <b data-ssid2>CasaMerla-Guest</b> without typing.</span>
          </span>
        </div>
      </div>

      <button class="join" type="button" data-join>
        <span class="join__fill" data-fill aria-hidden="true"></span>
        <span class="join__face">
          <svg class="join__tick" viewBox="0 0 16 16" aria-hidden="true"><path data-jointick d="M3.4 8.4 6.6 11.4 12.6 5" /></svg>
          <span class="join__roll"><span class="join__label" data-label>Join Wi-Fi</span></span>
        </span>
      </button>
    </section>

    <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>

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.

39 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 “Room Wi-Fi card” 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 white ground there is only the Wi-Fi card: at the top the green mark with the little house, Casa Merla, Room 214 · Guest Wi-Fi and the Offline pill; below, the Wi-Fi sign with its three grey arcs, the network name CasaMerla-Guest, 5 GHz · WPA3 · Floor 2 and the speed at zero. Then the two tabs Password and QR code, with the white pill under the chosen one, the sand coloured field with the password olive-terrace-48 in a fixed-width face (dashes in grey, digits in green) and the button to copy it, and at the bottom the big dark Join Wi-Fi button. Press the copy button: the letters lift by four pixels one after another and drop back with a small elastic, a light crosses the field, the password turns green, the two sheets of the icon shrink away and a tick draws itself on green in their place, and Copied slides in beside it; a moment later everything goes back. Press QR code: the pill slides on a spring, the password leaves to the side and the code comes in, its squares popping from the centre to the edges with a small bounce and the three corner eyes in green, beside Point your camera here. Press Join Wi-Fi: the card lifts by two pixels, the button fills with green from the left with Joining CasaMerla-Guest, the arcs light from the smallest to the largest in waves and the line under the name says Connecting…; then the arcs stay lit with a small elastic and a green shadow, the pill rolls to Online, the speed rolls up to 480 Mbps and the button, now light, says Connected with a tick that draws itself. Pressed again, the network is forgotten and the card goes back to Offline. Left alone, a drawn pointer does the whole round.

How it works

The password in letters

The password is split into one span per letter, with dashes and digits in two colour classes. On copy, GSAP gives each letter three keyframes (up four pixels, down half a pixel, back on an elastic) staggered by 24 thousandths: the wave.

The light on the field

A strip with a white and pale green gradient moves from -110% to 240% of its width inside a holder that clips to the field’s rounded corners; the field itself does not clip, so its shadows stay whole.

The QR that builds itself

The code is an SVG of 25 by 25 rectangles: the three eyes and the alignment square drawn, the timing lines alternating and the rest from a random number seeded by the password. Each square grows from its own centre (GSAP’s transformOrigin) with back.out, delayed in proportion to its distance from the centre.

The arcs and the speed

On top of the three grey arcs sit three identical ones with the green gradient: a repeating timeline lights them from the smallest to the largest until the network answers; then they stay lit, the sign does an elastic from its base and the speed rolls up with power3.out, written only rounded.

Values to change

NameFileDefaultWhat it changes
BRANDscript.js"Casa Merla"The name of the hotel.
ROOMscript.js"214"The room number in the head.
NETWORKscript.js"CasaMerla-Guest"The name of the network.
PASSWORDscript.js"olive-terrace-48"The password shown, copied and turned into the QR code.
SPEEDscript.js480The speed shown once online, in Mbps.
JOIN_TIMEscript.js2.4How many seconds the card takes to join the network.
QR_BUILDscript.js0.9How many seconds the QR squares take to build from the centre to the edges.
SPRINGscript.js1How lively the springs are (0 none, 1.6 a lot).
LOOPscript.jstrueLeft alone, the drawn pointer does the round again.

Try them in the Playground

When to use it

In the guest app or page of a hotel, a B&B or a holiday home, in the room guide, in a guest portal or on the Wi-Fi screen of a coworking space or a café: anywhere someone needs to get online without asking the front desk for the password.

On phones

The card narrows to 90 vw and the vertical sizes use clamp with vh, so it fits the phone box; the tab pill is measured again on resize and below 470 pixels of height the note under the password is hidden.

With reduced motion

No waves and no bounces: the letters do not move, the QR fades in, the arcs light halfway and then all together, the speed appears at its value and the labels change with fades. The drawn pointer is not shown, the demo still repeats.

Pitfalls

  • The field cannot have overflow hidden for the light that crosses it: it would clip its shadow and the Copied label. The light lives in a separate holder, absolute and rounded like the field, that clips only it.
  • The QR squares grow from their own centre with transformOrigin 50% 50% given to GSAP, which works out the origin for SVG from each rectangle’s box by itself: a transform-box fill-box also set in the CSS added a second origin and the squares popped up outside the tile.
  • The tab pill moves by the tab’s offsetLeft and takes its width: it must be measured again on resize, otherwise on a phone it stays halfway between the two.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

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

Testing

Tested on 15 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 components