Bloemmenu
Een ronde knop die openvouwt tot een krans van zes contactacties, met een korte vertraging per blad. Escape of een klik ernaast vouwt hem weer dicht. Compact contactmenu voor mobiel of als zwevende actieknop.
Zo gebruik je het
- Plak de HTML op de plek waar het onderdeel moet komen.
- Zet de CSS in je stylesheet. Alle klassen hebben een eigen voorvoegsel, dus niets botst met je eigen opmaak.
- Voeg de JavaScript toe en roep init() aan met het element waar de HTML in staat.
<!-- Bloemmenu · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h3fm">
<nav class="h3fm-nav" aria-label="Contact">
<ul class="h3fm-krans" id="h3fm-krans">
<li><a class="h3fm-b" href="#bellen" data-naam="Bellen"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6.6 3.5h3l1.4 4-2 1.4a12 12 0 0 0 6.1 6.1l1.4-2 4 1.4v3a2 2 0 0 1-2.2 2A17 17 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2z"/></svg><span>Bellen</span></a></li>
<li><a class="h3fm-b" href="#mail" data-naam="Mailen"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="5.5" width="17" height="13" rx="2"/><path d="M4 7l8 6 8-6"/></svg><span>Mailen</span></a></li>
<li><a class="h3fm-b" href="#route" data-naam="Route"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21s-6.5-6.2-6.5-11A6.5 6.5 0 0 1 18.5 10c0 4.8-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.3"/></svg><span>Route</span></a></li>
<li><a class="h3fm-b" href="#offerte" data-naam="Offerte"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 3.5h7l4 4v13H7z"/><path d="M14 3.5v4h4M10 12h5M10 15.5h5"/></svg><span>Offerte</span></a></li>
<li><a class="h3fm-b" href="#afspraak" data-naam="Afspraak"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="5.5" width="16" height="15" rx="2"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/></svg><span>Afspraak</span></a></li>
<li><a class="h3fm-b" href="#chat" data-naam="Chatten"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4.5 18.5l1.2-3.6A7.5 7.5 0 1 1 9 18z"/></svg><span>Chatten</span></a></li>
</ul>
<button class="h3fm-hart" type="button" aria-expanded="false" aria-controls="h3fm-krans" aria-label="Contactmenu openen"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
</nav>
<p class="h3fm-keuze" aria-live="polite">Tik op de knop voor contact</p>
</div>
</div>/* Bloemmenu · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
/* fonts (Fontshare): switzer@400,500,600 */
.h3fm{position:relative;width:100%;height:100%;min-height:220px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,3vh,18px);padding:14px;background:#e2e6e9;font-family:Switzer,sans-serif;--h3fm-r:88px}
.h3fm-nav{position:relative;width:calc(var(--h3fm-r) * 2 + 48px);height:calc(var(--h3fm-r) * 2 + 48px);flex:none}
.h3fm-krans{list-style:none;margin:0;padding:0}
.h3fm-krans li:hover,.h3fm-krans li:focus-within{z-index:3}
.h3fm-krans li{z-index:1;position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px}
.h3fm-b{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:#1b1b1b;border:1px solid #d3d0c8;box-shadow:0 6px 14px -10px rgba(0,0,0,.5);text-decoration:none;transform:rotate(var(--h3fm-a)) translateY(0) rotate(calc(var(--h3fm-a) * -1)) scale(.3);opacity:0;visibility:hidden;transition:transform .45s cubic-bezier(.3,1.4,.5,1) var(--h3fm-d,0s),opacity .25s ease var(--h3fm-d,0s),visibility 0s linear .45s,background .2s,color .2s}
.h3fm-b svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.h3fm-b span{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);padding:4px 7px;border-radius:4px;background:#1b1b1b;color:#fff;font:500 12px/1 Switzer,sans-serif;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.h3fm-b:hover,.h3fm-b:focus-visible{background:#1b1b1b;color:#fff;outline:none}
.h3fm-b:hover span,.h3fm-b:focus-visible span{opacity:1}
.h3fm-b:focus-visible{box-shadow:0 0 0 3px #F5480F}
.h3fm.is-open .h3fm-b{transform:rotate(var(--h3fm-a)) translateY(calc(var(--h3fm-r) * -1)) rotate(calc(var(--h3fm-a) * -1)) scale(1);opacity:1;visibility:visible;transition-delay:var(--h3fm-d,0s),var(--h3fm-d,0s),0s,0s,0s}
.h3fm-krans li:nth-child(1) .h3fm-b{--h3fm-a:0deg}.h3fm-krans li:nth-child(2) .h3fm-b{--h3fm-a:60deg}.h3fm-krans li:nth-child(3) .h3fm-b{--h3fm-a:120deg}
.h3fm-krans li:nth-child(4) .h3fm-b{--h3fm-a:180deg}.h3fm-krans li:nth-child(5) .h3fm-b{--h3fm-a:240deg}.h3fm-krans li:nth-child(6) .h3fm-b{--h3fm-a:300deg}
.h3fm.is-open .h3fm-krans li:nth-child(2) .h3fm-b{--h3fm-d:.04s}.h3fm.is-open .h3fm-krans li:nth-child(3) .h3fm-b{--h3fm-d:.08s}.h3fm.is-open .h3fm-krans li:nth-child(4) .h3fm-b{--h3fm-d:.12s}
.h3fm.is-open .h3fm-krans li:nth-child(5) .h3fm-b{--h3fm-d:.16s}.h3fm.is-open .h3fm-krans li:nth-child(6) .h3fm-b{--h3fm-d:.2s}
.h3fm-hart{z-index:2;position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;display:grid;place-items:center;border:0;border-radius:50%;background:#F5480F;color:#141414;cursor:pointer;box-shadow:0 10px 22px -12px rgba(240,78,26,.9);transition:transform .35s cubic-bezier(.3,1.4,.5,1),background .2s}
.h3fm-hart svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
.h3fm-hart:hover{background:#ff6a3a}
.h3fm-hart:focus-visible{outline:2px solid #141414;outline-offset:3px}
.h3fm.is-open .h3fm-hart{background:#141414;color:#fff}
.h3fm.is-open .h3fm-hart svg{transform:rotate(135deg)}
.h3fm-keuze{margin:0;font:400 14px/1.3 Switzer,sans-serif;color:#555;text-align:center}
@media (prefers-reduced-motion:reduce){.h3fm-b,.h3fm-hart,.h3fm-hart svg{transition-duration:.01s !important;transition-delay:0s !important}}// Bloemmenu · © 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 wrap = root.querySelector('.h3fm'), hart = root.querySelector('.h3fm-hart'), krans = root.querySelector('.h3fm-krans'), keuze = root.querySelector('.h3fm-keuze');
var knoppen = Array.prototype.slice.call(root.querySelectorAll('.h3fm-b'));
var uid = 'h3fm' + Math.random().toString(36).slice(2, 7); krans.id = uid; hart.setAttribute('aria-controls', uid);
function maat() {
var h = wrap.clientHeight - 60, w = wrap.clientWidth - 28;
var r = Math.max(58, Math.min(96, (Math.min(h, w) - 50) / 2));
wrap.style.setProperty('--h3fm-r', r + 'px');
}
maat();
if (window.ResizeObserver) new ResizeObserver(maat).observe(wrap);
function zet(open, focus) {
wrap.classList.toggle('is-open', open);
hart.setAttribute('aria-expanded', open ? 'true' : 'false');
hart.setAttribute('aria-label', open ? 'Contactmenu sluiten' : 'Contactmenu openen');
knoppen.forEach(function (b) { b.tabIndex = open ? 0 : -1; });
if (open && focus) setTimeout(function () { knoppen[0].focus(); }, 60);
}
zet(false);
hart.addEventListener('click', function (e) { var open = !wrap.classList.contains('is-open'); zet(open, e.detail === 0); });
knoppen.forEach(function (b, i) {
b.addEventListener('click', function (e) { e.preventDefault(); keuze.textContent = 'Gekozen: ' + b.getAttribute('data-naam'); zet(false); hart.focus(); });
b.addEventListener('keydown', function (e) {
var n = null;
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') n = knoppen[(i + 1) % knoppen.length];
if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') n = knoppen[(i - 1 + knoppen.length) % knoppen.length];
if (n) { e.preventDefault(); n.focus(); }
});
});
wrap.addEventListener('keydown', function (e) { if (e.key === 'Escape' && wrap.classList.contains('is-open')) { zet(false); hart.focus(); } });
document.addEventListener('pointerdown', function (e) { if (wrap.classList.contains('is-open') && !root.querySelector('.h3fm-nav').contains(e.target)) zet(false); });
}
init(document.querySelector('.jouw-container'));
Meer uit navigatie & menu's
Iets gezien dat je mooi vindt?
Zet het in je selectie en stuur hem op. Dan bouwen we je site eromheen, in jouw huisstijl.
Neem contact op →