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

Glijdend menuvlak

A black block glides behind the menu item you point at or tab to and slides back to the active page when you leave; below it the same technique as a tab switcher with arrow keys.

Offerte binnen twee werkdagen, bedragen inclusief btw.

How to use it

  1. Paste the HTML where the navigation & menus 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.
<!-- Glijdend menuvlak · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h4hn">
  <nav class="h4hn__nav" aria-label="Voorbeeldmenu">
    <span class="h4hn__ind" aria-hidden="true"></span>
    <a class="h4hn__a" href="#diensten">Diensten</a>
    <a class="h4hn__a" href="#werk" aria-current="page">Werk</a>
    <a class="h4hn__a" href="#tarieven">Tarieven</a>
    <a class="h4hn__a" href="#contact">Contact</a>
  </nav>
  <div class="h4hn__seg" role="tablist" aria-label="Soort klant">
    <span class="h4hn__ind h4hn__ind--seg" aria-hidden="true"></span>
    <button class="h4hn__tab" type="button" role="tab" aria-selected="true" data-uit="Offerte binnen twee werkdagen, bedragen inclusief btw.">Particulier</button>
    <button class="h4hn__tab" type="button" role="tab" aria-selected="false" tabindex="-1" data-uit="Op rekening met 30 dagen betaaltermijn, bedragen exclusief btw.">Zakelijk</button>
    <button class="h4hn__tab" type="button" role="tab" aria-selected="false" tabindex="-1" data-uit="Korting voor stichtingen en verenigingen met een KvK-inschrijving.">Vereniging</button>
  </div>
  <p class="h4hn__out" role="tabpanel" aria-live="polite">Offerte binnen twee werkdagen, bedragen inclusief btw.</p>
</div>
</div>

More navigation & menus

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 →