Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Kompas dat naar je cursor wijst New

A compass whose needle swings springily towards your cursor wherever it is on the page (towards your finger on a phone). Point at a rental location, focus it or tap it, and the needle turns to the real bearing from the station with the distance below. For the contact or route page of a bike rental, water sports school, outdoor shop or business with several locations.

Fietsverhuur rond Zwolle

Gemeten vanaf station Zwolle.

How to use it

  1. Paste the HTML where the components should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Kompas dat naar je cursor wijst · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="kmp">
  <svg class="kmp__roos" viewBox="0 0 120 120" aria-hidden="true">
    <circle cx="60" cy="60" r="57" fill="#fff" stroke="#0a0a0a" stroke-width="2"/>
    <g class="kmp__streepjes" stroke="#8a857e" stroke-width="1.2"></g>
    <text x="60" y="22" text-anchor="middle" class="kmp__wind kmp__wind--n">N</text>
    <text x="101" y="65" text-anchor="middle" class="kmp__wind">O</text>
    <text x="60" y="108" text-anchor="middle" class="kmp__wind">Z</text>
    <text x="19" y="65" text-anchor="middle" class="kmp__wind">W</text>
    <g class="kmp__naald"><path d="M60 24 L66 60 L54 60 Z" fill="#F5480F"/><path d="M60 96 L66 60 L54 60 Z" fill="#0a0a0a"/><circle cx="60" cy="60" r="4.5" fill="#fff" stroke="#0a0a0a" stroke-width="2"/></g>
  </svg>
  <div class="kmp__info">
    <p class="kmp__kop">Fietsverhuur rond Zwolle</p>
    <div class="kmp__lijst">
      <button type="button" class="kmp__punt" data-graden="356" data-tekst="Meppel ligt 22 km naar het noorden.">Meppel <span>22 km</span></button>
      <button type="button" class="kmp__punt" data-graden="282" data-tekst="Kampen ligt 14 km naar het westen.">Kampen <span>14 km</span></button>
      <button type="button" class="kmp__punt" data-graden="186" data-tekst="Deventer ligt 32 km naar het zuiden.">Deventer <span>32 km</span></button>
    </div>
    <p class="kmp__stand" aria-live="polite">Gemeten vanaf station Zwolle.</p>
  </div>
</div>
</div>

More components

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →