Diensten
Oplossingen
Branches
Regio
Plan een gesprek 085 369 7668 info@neddev.com

Lens Zoom

Een rond vergrootglas dat over een plattegrond meeschuift en de kleine maten en ruimtenamen scherp leesbaar maakt. De lens toont een vectorkopie, dus alles blijft haarscherp. Werkt met muis, vinger en pijltjestoetsen.

Beweeg over de plattegrond. Oranje stippen zijn stopcontacten.

Zo gebruik je het

  1. Plak de HTML op de plek waar het onderdeel moet komen.
  2. Zet de CSS in je stylesheet. Alle klassen hebben een eigen voorvoegsel, dus niets botst met je eigen opmaak.
  3. Voeg de JavaScript toe en roep init() aan met het element waar de HTML in staat.
<!-- Lens Zoom · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h3lz">
  <div class="h3lz-vlak" tabindex="0" role="img" aria-label="Plattegrond begane grond met vergrootglas. Gebruik de pijltjestoetsen om de lens te verplaatsen.">
    <svg class="h3lz-plan" viewBox="0 0 800 480" aria-hidden="true">
      <rect x="0" y="0" width="800" height="480" fill="#ffffff"/>
      <g fill="none" stroke="#1d1d1d" stroke-width="8" stroke-linejoin="square">
        <path d="M60 50H740V430H60Z"/>
        <path d="M330 50V250M330 300V430M60 250H260M300 250H470M520 250H740M560 50V130M560 175V250M470 250V430M600 250V330M600 370V430"/>
      </g>
      <g fill="none" stroke="#1d1d1d" stroke-width="1.5">
        <path d="M260 250A40 40 0 0 1 300 290"/><path d="M330 300A40 40 0 0 0 370 260"/><path d="M470 250A50 50 0 0 0 520 300"/>
        <path d="M560 130A45 45 0 0 1 605 175"/><path d="M600 330A40 40 0 0 1 640 370"/>
      </g>
      <g fill="#bfe0f2" stroke="#1d1d1d" stroke-width="1.2"><rect x="110" y="46" width="150" height="8"/><rect x="390" y="46" width="120" height="8"/><rect x="56" y="300" width="8" height="90"/><rect x="736" y="100" width="8" height="90"/><rect x="620" y="426" width="90" height="8"/></g>
      <g fill="none" stroke="#9a9a9a" stroke-width="1"><rect x="600" y="70" width="120" height="44" rx="4"/><circle cx="700" cy="215" r="14"/><rect x="630" y="265" width="90" height="40" rx="18"/><rect x="360" y="70" width="180" height="26"/><rect x="110" y="140" width="150" height="62" rx="6"/><rect x="500" y="300" width="70" height="110"/><path d="M500 318h70M500 336h70M500 354h70M500 372h70M500 390h70"/></g>
      <g font-family="Switzer, sans-serif" fill="#1d1d1d">
        <text x="195" y="115" font-size="15" font-weight="600" text-anchor="middle">Woonkamer</text>
        <text x="195" y="130" font-size="7.5" text-anchor="middle" fill="#555">6,40 × 4,90 m · 31,4 m²</text>
        <text x="185" y="225" font-size="6" text-anchor="middle" fill="#777">bank 2,40 m</text>
        <text x="445" y="135" font-size="15" font-weight="600" text-anchor="middle">Keuken</text>
        <text x="445" y="150" font-size="7.5" text-anchor="middle" fill="#555">5,20 × 4,90 m · 25,5 m²</text>
        <text x="450" y="86" font-size="6" text-anchor="middle" fill="#777">werkblad 3,60 m · afzuiging op dak</text>
        <text x="650" y="150" font-size="12" font-weight="600" text-anchor="middle">Badkamer</text>
        <text x="650" y="163" font-size="7" text-anchor="middle" fill="#555">2,80 × 2,00 m</text>
        <text x="660" y="94" font-size="6" text-anchor="middle" fill="#777">inloopdouche 1,20 m</text>
        <text x="655" y="235" font-size="6" text-anchor="middle" fill="#777">vloerverwarming</text>
        <text x="195" y="330" font-size="13" font-weight="600" text-anchor="middle">Slaapkamer</text>
        <text x="195" y="344" font-size="7" text-anchor="middle" fill="#555">4,50 × 3,60 m · 16,2 m²</text>
        <text x="195" y="395" font-size="6" text-anchor="middle" fill="#777">inbouwkast 2,10 m</text>
        <text x="400" y="355" font-size="12" font-weight="600" text-anchor="middle">Hal</text>
        <text x="400" y="368" font-size="7" text-anchor="middle" fill="#555">2,40 × 3,60 m</text>
        <text x="535" y="292" font-size="6" text-anchor="middle" fill="#777">trap 14 treden</text>
        <text x="670" y="350" font-size="11" font-weight="600" text-anchor="middle">Berging</text>
        <text x="670" y="362" font-size="6.5" text-anchor="middle" fill="#555">2,60 × 1,80 m</text>
        <text x="675" y="290" font-size="6" text-anchor="middle" fill="#777">cv-ketel en meterkast</text>
        <text x="400" y="472" font-size="7" text-anchor="middle" fill="#777">voordeur, drempel 2 cm</text>
      </g>
      <g fill="#d8532b"><circle cx="76" cy="160" r="2.5"/><circle cx="314" cy="90" r="2.5"/><circle cx="544" cy="220" r="2.5"/><circle cx="76" cy="410" r="2.5"/><circle cx="314" cy="410" r="2.5"/></g>
    </svg>
    <div class="h3lz-lens" aria-hidden="true"></div>
  </div>
  <p class="h3lz-hint">Beweeg over de plattegrond. Oranje stippen zijn stopcontacten.</p>
</div>
</div>

Meer uit componenten

Iets gezien dat je mooi vindt?

Zet het in je selectie en stuur hem op. Dan bouwen we je site eromheen, in jouw huisstijl.

Neem contact op →