Family Button
A square action button in the corner that grows into a panel with the main contact options when clicked. For practices and shops where calling or booking is the goal.
Fysiotherapie Oosterpark
Behandeling bij rugklachten, sportblessures en na een operatie. Ook op dinsdagavond open.
How to use it
- Paste the HTML where the buttons 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.
<!-- Family Button · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="fmb">
<div class="fmb__pagina">
<h3 class="fmb__naam">Fysiotherapie Oosterpark</h3>
<p class="fmb__info">Behandeling bij rugklachten, sportblessures en na een operatie. Ook op dinsdagavond open.</p>
</div>
<div class="fmb__houder">
<div class="fmb__paneel" id="fmb-paneel" role="group" aria-label="Contact opnemen">
<p class="fmb__titel">Hoe wilt u ons bereiken?</p>
<a class="fmb__actie" href="#bellen">Bellen: 020 123 4567</a>
<a class="fmb__actie" href="#afspraak">Afspraak inplannen</a>
<a class="fmb__actie" href="#route">Route naar de praktijk</a>
<p class="fmb__melding" aria-live="polite"></p>
</div>
<button class="fmb__knop" type="button" aria-expanded="false" aria-controls="fmb-paneel" aria-label="Contactopties openen"><span class="fmb__kruis" aria-hidden="true"></span></button>
</div>
</div>
</div>/* Family Button · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.fmb{position:relative;width:100%;height:100%;background:#f4f3f1;font-family:Switzer,sans-serif;overflow:hidden}
.fmb__pagina{padding:28px 28px 0;max-width:380px}
.fmb__naam{margin:0 0 8px;font-size:22px;font-weight:600;color:#0a0a0a;line-height:1.15}
.fmb__info{margin:0;font-size:15px;line-height:1.5;color:#55524d}
.fmb__houder{position:absolute;right:16px;bottom:16px;width:52px;height:52px;background:#F5480F;border-radius:4px;overflow:hidden;transition:width .38s cubic-bezier(.3,.9,.3,1),height .38s cubic-bezier(.3,.9,.3,1),background-color .25s ease}
.fmb.is-open .fmb__houder{width:min(272px,calc(100% - 32px));height:min(208px,calc(100% - 24px));background:#0a0a0a}
.fmb__paneel{position:absolute;left:0;top:0;width:272px;max-width:100%;padding:16px 16px 0;box-sizing:border-box;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .25s ease,visibility 0s linear .25s}
.fmb.is-open .fmb__paneel{opacity:1;visibility:visible;transform:none;transition:opacity .25s ease .16s,transform .3s ease .16s,visibility 0s}
.fmb__titel{margin:0 0 10px;color:rgba(255,255,255,.65);font-size:14px}
.fmb__actie{display:block;padding:9px 0;color:#fff;font-size:16px;font-weight:500;text-decoration:none;border-top:1px solid rgba(255,255,255,.14);transition:color .15s ease}
.fmb__actie:hover,.fmb__actie:focus-visible{color:#F5480F;outline:none}
.fmb__melding{margin:6px 0 0;padding-right:40px;min-height:18px;color:rgba(255,255,255,.65);font-size:13px}
.fmb__knop{position:absolute;right:0;bottom:0;width:52px;height:52px;border:0;padding:0;background:transparent;cursor:pointer;color:#fff;border-radius:4px}
.fmb__knop:focus-visible{outline:2px solid #0a0a0a;outline-offset:3px}
.fmb.is-open .fmb__knop:focus-visible{outline-color:#F5480F;outline-offset:-4px}
.fmb__kruis,.fmb__kruis::after{position:absolute;left:50%;top:50%;width:18px;height:2px;margin:-1px 0 0 -9px;background:currentColor;transition:transform .3s ease}
.fmb__kruis::after{content:"";left:0;top:0;margin:0;transform:rotate(90deg)}
.fmb.is-open .fmb__kruis{transform:rotate(135deg)}
@media (max-width:480px){.fmb__pagina{padding:20px 20px 0}.fmb__naam{font-size:19px}.fmb__info{font-size:14px}.fmb__paneel{padding-top:12px}.fmb__titel{margin-bottom:4px;font-size:13px}.fmb__actie{padding:7px 0;font-size:15px}}
@media (prefers-reduced-motion:reduce){.fmb__houder,.fmb__paneel,.fmb__kruis{transition:none!important}}// Family Button · © 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 el=root.querySelector('.fmb'); if(!el) return;
var knop=el.querySelector('.fmb__knop'), melding=el.querySelector('.fmb__melding'), acties=el.querySelectorAll('.fmb__actie');
function zet(open){
el.classList.toggle('is-open',open);
knop.setAttribute('aria-expanded',open?'true':'false');
knop.setAttribute('aria-label',open?'Contactopties sluiten':'Contactopties openen');
acties.forEach(function(a){ a.tabIndex=open?0:-1; });
if(!open) melding.textContent='';
}
zet(false);
knop.addEventListener('click',function(){ var open=!el.classList.contains('is-open'); zet(open); if(open) setTimeout(function(){ acties[0].focus({preventScroll:true}); },220); });
acties.forEach(function(a){ a.addEventListener('click',function(e){ e.preventDefault(); melding.textContent='Gekozen: '+a.textContent.split(':')[0].toLowerCase()+'.'; }); });
el.addEventListener('keydown',function(e){ if(e.key==='Escape'&&el.classList.contains('is-open')){ zet(false); knop.focus(); } });
el.addEventListener('pointerdown',function(e){ if(el.classList.contains('is-open')&&!e.target.closest('.fmb__houder')) zet(false); });
}
init(document.querySelector('.jouw-container'));
More buttons
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 →