Gooey Blob Nav
A menu where an orange blob follows the links; two layers moving at different speeds merge and stretch on the way. When the pointer leaves, the blob returns to the current page.
How to use it
- Paste the HTML where the components should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Gooey Blob Nav · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<nav class="ngb" aria-label="Hoofdmenu">
<svg class="ngb__defs" width="0" height="0" aria-hidden="true" focusable="false"><filter id="ngb-smelt" x="-20%" y="-50%" width="140%" height="200%"><feGaussianBlur in="SourceGraphic" stdDeviation="6" result="vaag"/><feColorMatrix in="vaag" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8"/></filter></svg>
<div class="ngb__laag" aria-hidden="true"><span class="ngb__vlek ngb__vlek--voor"></span><span class="ngb__vlek ngb__vlek--na"></span></div>
<ul class="ngb__lijst">
<li><a class="ngb__link" href="#werk" aria-current="page">Werk</a></li>
<li><a class="ngb__link" href="#diensten">Diensten</a></li>
<li><a class="ngb__link" href="#over">Over ons</a></li>
<li><a class="ngb__link" href="#contact">Contact</a></li>
</ul>
</nav>
</div>/* Gooey Blob Nav · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.ngb{position:relative;display:inline-block;padding:6px;background:#0a0a0a;border-radius:4px;font-family:'Switzer',sans-serif}
.ngb__defs{position:absolute;width:0;height:0}
.ngb__laag{position:absolute;inset:0;filter:url(#ngb-smelt);pointer-events:none}
.ngb__vlek{position:absolute;left:0;top:0;width:0;height:0;background:#F5480F;border-radius:4px}
.ngb.is-klaar .ngb__vlek--voor{transition:transform .32s cubic-bezier(.3,.9,.3,1),width .32s cubic-bezier(.3,.9,.3,1),height .32s}
.ngb.is-klaar .ngb__vlek--na{transition:transform .62s cubic-bezier(.5,0,.2,1),width .62s cubic-bezier(.5,0,.2,1),height .62s}
.ngb__lijst{position:relative;display:flex;gap:2px;margin:0;padding:0;list-style:none}
.ngb__link{display:block;padding:12px 18px;color:rgba(255,255,255,.72);text-decoration:none;font-weight:600;font-size:16px;line-height:1.2;border-radius:4px;transition:color .18s;outline:none}
.ngb__link:hover,.ngb__link:focus-visible,.ngb__link[aria-current="page"]{color:#fff}
.ngb__link:focus-visible{box-shadow:0 0 0 2px #fff}
@media (max-width:520px){.ngb__link{padding:10px 11px;font-size:14px}}
@media (prefers-reduced-motion:reduce){.ngb.is-klaar .ngb__vlek--voor,.ngb.is-klaar .ngb__vlek--na{transition:none}}// Gooey Blob Nav · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie
// root = het element waarin de HTML staat
function init(root){
var nav = root.querySelector('.ngb'); if (!nav) return;
var vlekken = nav.querySelectorAll('.ngb__vlek');
var links = Array.prototype.slice.call(nav.querySelectorAll('.ngb__link'));
var actief = nav.querySelector('[aria-current="page"]') || links[0];
function naar(el) {
var r = el.getBoundingClientRect(), n = nav.getBoundingClientRect();
vlekken.forEach(function (v) {
v.style.width = r.width + 'px'; v.style.height = r.height + 'px';
v.style.transform = 'translate(' + (r.left - n.left) + 'px,' + (r.top - n.top) + 'px)';
});
}
links.forEach(function (a) {
a.addEventListener('mouseenter', function () { naar(a); });
a.addEventListener('focus', function () { naar(a); });
a.addEventListener('click', function (e) {
e.preventDefault();
if (actief) actief.removeAttribute('aria-current');
actief = a; a.setAttribute('aria-current', 'page'); naar(a);
});
});
nav.addEventListener('mouseleave', function () { naar(actief); });
nav.addEventListener('focusout', function (e) { if (!nav.contains(e.relatedTarget)) naar(actief); });
naar(actief);
requestAnimationFrame(function () { nav.classList.add('is-klaar'); });
if (window.ResizeObserver) new ResizeObserver(function () { naar(actief); }).observe(nav);
}
init(document.querySelector('.jouw-container'));
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 →