Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Hover Pill Nav New

A black pill glides behind the hovered nav item and returns to the active page. Also works as a tab switcher.

boven: hover · onder: klik

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.
<!-- Hover Pill Nav · Bron: Motion Primitives · licentie MIT. Laat deze vermelding staan bij hergebruik. -->
<div class="jouw-container">
<div class="hpn"><div class="hpn__bar" data-mode="hover" role="navigation" aria-label="Hoofdmenu"><span class="hpn__pill"></span><a href="#" class="hpn__a">Diensten</a><a href="#" class="hpn__a is-active">Werk</a><a href="#" class="hpn__a">Tarieven</a><a href="#" class="hpn__a">Contact</a></div>
<div class="hpn__bar hpn__bar--tabs" data-mode="click" role="tablist"><span class="hpn__pill"></span><button class="hpn__a is-active" role="tab">Particulier</button><button class="hpn__a" role="tab">Zakelijk</button><button class="hpn__a" role="tab">Vereniging</button></div>
<span class="hpn__cap">boven: hover · onder: klik</span></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 →