Statuseiland
A black island at the top that springs from a small status into a notification or an expanded panel with actions; for live status such as a ride, an order or an upload.
Goedemorgen, Daan
Je rit naar Rotterdam Centraal is bevestigd. Klik op het eiland voor details.
How to use it
- Paste the HTML where the navigation & menus 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.
<!-- Statuseiland · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h4il" data-state="idle">
<div class="h4il__shape">
<button class="h4il__tog" type="button" aria-expanded="false" aria-label="Ritstatus, klik om uit te klappen">
<span class="h4il__face h4il__face--idle"><span class="h4il__dot" aria-hidden="true"></span>Taxi · 12 min</span>
<span class="h4il__face h4il__face--alert">Sanne is er over 2 minuten</span>
<span class="h4il__face h4il__face--open"><span>Rit naar Rotterdam Centraal</span><span class="h4il__eta">12 min</span></span>
</button>
<div class="h4il__more" aria-hidden="true">
<p class="h4il__who">Sanne · grijze Toyota Corolla, GH-482-K</p>
<div class="h4il__road" aria-hidden="true"><span class="h4il__fill"></span></div>
<div class="h4il__acts"><button class="h4il__b h4il__b--call" type="button">Bel Sanne</button><button class="h4il__b h4il__b--close" type="button">Inklappen</button></div>
</div>
</div>
<div class="h4il__page">
<h3 class="h4il__h">Goedemorgen, Daan</h3>
<p class="h4il__p">Je rit naar Rotterdam Centraal is bevestigd. Klik op het eiland voor details.</p>
<button class="h4il__ping" type="button">Stuur een melding</button>
</div>
</div>
</div>/* Statuseiland · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.h4il{position:absolute;inset:0;font-family:'Switzer',sans-serif;background:#f4f3f1;color:#0a0a0a;overflow:hidden}
.h4il__shape{position:absolute;top:14px;left:50%;width:136px;height:34px;transform:translateX(-50%);background:#0a0a0a;color:#fff;border-radius:12px;overflow:hidden;z-index:2;box-shadow:0 10px 26px rgba(10,10,10,.18);transition:width .6s cubic-bezier(.34,1.4,.5,1),height .6s cubic-bezier(.34,1.4,.5,1),border-radius .45s ease}
.h4il[data-state=alert] .h4il__shape{width:min(250px,86%);height:44px;border-radius:14px}
.h4il[data-state=open] .h4il__shape{width:min(340px,92%);height:150px;border-radius:20px}
.h4il__tog{position:absolute;left:0;right:0;top:0;height:34px;margin:0;padding:0 14px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;transition:height .6s cubic-bezier(.34,1.4,.5,1)}
.h4il[data-state=alert] .h4il__tog,.h4il[data-state=open] .h4il__tog{height:44px}
.h4il__tog:focus-visible{outline:2px solid #F5480F;outline-offset:-3px;border-radius:10px}
.h4il__face{position:absolute;left:14px;right:14px;top:50%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:500;white-space:nowrap;opacity:0;transform:translateY(-50%) scale(.92);transition:opacity .2s ease,transform .3s ease;pointer-events:none}
.h4il[data-state=idle] .h4il__face--idle,.h4il[data-state=alert] .h4il__face--alert,.h4il[data-state=open] .h4il__face--open{opacity:1;transform:translateY(-50%) scale(1);transition-delay:.12s}
.h4il__face--open{justify-content:space-between;font-weight:600}
.h4il__eta{color:#F5480F}
.h4il__dot{width:8px;height:8px;border-radius:50%;background:#F5480F;animation:h4il-dot 1.6s ease-in-out infinite}
@keyframes h4il-dot{50%{opacity:.35}}
.h4il__more{position:absolute;left:16px;right:16px;top:46px;opacity:0;transform:translateY(-6px);transition:opacity .2s ease,transform .3s ease;pointer-events:none}
.h4il[data-state=open] .h4il__more{opacity:1;transform:none;pointer-events:auto;transition-delay:.18s}
.h4il__who{margin:0 0 10px;font-size:13px;color:rgba(255,255,255,.72)}
.h4il__road{height:4px;background:rgba(255,255,255,.18);border-radius:2px;overflow:hidden;margin-bottom:14px}
.h4il__fill{display:block;height:100%;width:22%;background:#F5480F;transition:width 1.2s cubic-bezier(.2,.8,.2,1) .25s}
.h4il[data-state=open] .h4il__fill{width:68%}
.h4il__acts{display:flex;gap:8px}
.h4il__b{flex:1;min-height:32px;border-radius:4px;font:600 13px 'Switzer',sans-serif;cursor:pointer;border:1px solid rgba(255,255,255,.3);background:none;color:#fff}
.h4il__b--call{background:#F5480F;border-color:#F5480F}
.h4il__b:hover{filter:brightness(1.1)}
.h4il__b:focus-visible,.h4il__ping:focus-visible{outline:2px solid #F5480F;outline-offset:2px}
.h4il__page{position:absolute;left:0;right:0;bottom:0;top:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:0 20px;text-align:center}
.h4il__h{margin:0;font-size:clamp(20px,3.4vw,30px);font-weight:700;letter-spacing:-.02em}
.h4il__p{margin:0;max-width:34ch;font-size:13px;line-height:1.45;color:rgba(10,10,10,.68)}
.h4il__ping{margin-top:6px;min-height:32px;padding:0 14px;border-radius:4px;border:1px solid #0a0a0a;background:#fff;color:#0a0a0a;font:600 13px 'Switzer',sans-serif;cursor:pointer}
.h4il__ping:hover{background:#0a0a0a;color:#fff}
@media (prefers-reduced-motion:reduce){.h4il__shape,.h4il__tog,.h4il__face,.h4il__more,.h4il__fill{transition:none}.h4il__dot{animation:none}}// Statuseiland · © 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 w=root.querySelector('.h4il');if(!w)return;
var shape=w.querySelector('.h4il__shape'),tog=w.querySelector('.h4il__tog'),more=w.querySelector('.h4il__more'),ping=w.querySelector('.h4il__ping'),call=w.querySelector('.h4il__b--call'),close=w.querySelector('.h4il__b--close');
var tm=0,tc=0;
function state(){return w.getAttribute('data-state');}
function set(s){
w.setAttribute('data-state',s);
var open=s==='open';
tog.setAttribute('aria-expanded',open?'true':'false');
more.setAttribute('aria-hidden',open?'false':'true');
more.inert=!open;
}
set('idle');
tog.addEventListener('click',function(){clearTimeout(tm);set(state()==='open'?'idle':'open');});
ping.addEventListener('click',function(){clearTimeout(tm);set('alert');tm=setTimeout(function(){if(state()==='alert')set('idle');},2800);});
close.addEventListener('click',function(){set('idle');tog.focus();});
call.addEventListener('click',function(){clearTimeout(tc);call.textContent='Verbinden...';tc=setTimeout(function(){call.textContent='Bel Sanne';},1600);});
w.addEventListener('keydown',function(e){if(e.key==='Escape'&&state()==='open'){set('idle');tog.focus();}});
document.addEventListener('pointerdown',function(e){if(state()==='open'&&!shape.contains(e.target))set('idle');});
}
init(document.querySelector('.jouw-container'));
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 →