Vragenblok met foto en kop over de rand
A photo on the left with the heading spilling over its edge, an accordion on the right with the questions guests ask before booking. One answer is open at a time and the height animates smoothly. Fully keyboard operable.

Even checken voor je boekt
Staat je vraag er niet bij? Bel de receptie op 0111 123 456, elke dag van 9:00 tot 18:00.
Ja, op het hondenveld aan de duinkant. Eén hond per plek, aangelijnd op het terrein. Het strand bij paal 12 is het hele jaar open voor honden.
Vanaf 13:00. Kom je later dan 18:00, dan ligt je envelop met de slagboompas in het kastje naast de receptie.
Een kwartier lopen over het duinpad, of vijf minuten fietsen. Fietsen huur je bij ons vanaf 9 euro per dag.
De comfortplekken hebben 10 ampère en een eigen waterpunt. Op het trekkersveld is geen stroom, wel een oplaadkast bij het toiletgebouw.
In mei buiten de feestdagen en vanaf half september. Dan betaal je ook het laagste tarief en kies je zelf je plek.
How to use it
- Paste the HTML where the page sections 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.
<!-- Vragenblok met foto en kop over de rand · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h3fq">
<div class="h3fq-in">
<div class="h3fq-links">
<div class="h3fq-foto"><img src="https://neddev.com/lab-media/faq-accordion-1.webp" alt="Kampeerveld tussen de duinen bij zonsondergang" loading="lazy"></div>
<h2 class="h3fq-kop">Even checken voor je boekt</h2>
<p class="h3fq-bel">Staat je vraag er niet bij? Bel de receptie op <a href="tel:+31111123456">0111 123 456</a>, elke dag van 9:00 tot 18:00.</p>
</div>
<div class="h3fq-lijst">
<div class="h3fq-v"><h3><button type="button" aria-expanded="true">Mag de hond mee?<span class="h3fq-ic" aria-hidden="true"></span></button></h3><div class="h3fq-a"><div><p>Ja, op het hondenveld aan de duinkant. Eén hond per plek, aangelijnd op het terrein. Het strand bij paal 12 is het hele jaar open voor honden.</p></div></div></div>
<div class="h3fq-v"><h3><button type="button" aria-expanded="false">Hoe laat kan ik inchecken?<span class="h3fq-ic" aria-hidden="true"></span></button></h3><div class="h3fq-a" hidden><div><p>Vanaf 13:00. Kom je later dan 18:00, dan ligt je envelop met de slagboompas in het kastje naast de receptie.</p></div></div></div>
<div class="h3fq-v"><h3><button type="button" aria-expanded="false">Hoe ver is het naar zee?<span class="h3fq-ic" aria-hidden="true"></span></button></h3><div class="h3fq-a" hidden><div><p>Een kwartier lopen over het duinpad, of vijf minuten fietsen. Fietsen huur je bij ons vanaf 9 euro per dag.</p></div></div></div>
<div class="h3fq-v"><h3><button type="button" aria-expanded="false">Heeft elke plek stroom?<span class="h3fq-ic" aria-hidden="true"></span></button></h3><div class="h3fq-a" hidden><div><p>De comfortplekken hebben 10 ampère en een eigen waterpunt. Op het trekkersveld is geen stroom, wel een oplaadkast bij het toiletgebouw.</p></div></div></div>
<div class="h3fq-v"><h3><button type="button" aria-expanded="false">Wanneer is het er rustig?<span class="h3fq-ic" aria-hidden="true"></span></button></h3><div class="h3fq-a" hidden><div><p>In mei buiten de feestdagen en vanaf half september. Dan betaal je ook het laagste tarief en kies je zelf je plek.</p></div></div></div>
</div>
</div>
</div>
</div>/* Vragenblok met foto en kop over de rand · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
/* fonts (Fontshare): switzer@400,500,600 + cabinet-grotesk@800 */
.h3fq{box-sizing:border-box;width:100%;container-type:inline-size;background:#e4e9e5;color:#18201b;font-family:Switzer,sans-serif;padding:clamp(24px,6cqi,72px) clamp(16px,5cqi,64px)}
.h3fq *,.h3fq *::before,.h3fq *::after{box-sizing:border-box}
.h3fq-in{display:grid;grid-template-columns:1fr;gap:36px;align-items:start;max-width:1240px;margin:0 auto}
@container (min-width:780px){.h3fq-in{grid-template-columns:5fr 7fr;gap:clamp(40px,6cqi,90px)}}
.h3fq-links{position:relative}
.h3fq-foto{border-radius:4px;overflow:hidden;aspect-ratio:4/5;max-height:520px;background:#c9d1cb}
@container (max-width:779px){.h3fq-foto{aspect-ratio:16/10}}
.h3fq-foto img{width:100%;height:100%;object-fit:cover;object-position:35% 50%;display:block}
.h3fq-kop{position:relative;margin:-.42em 0 0 .3em;max-width:9ch;font:800 clamp(34px,6.4cqi,64px)/.95 'Cabinet Grotesk',Switzer,sans-serif;letter-spacing:-.025em;color:#18201b}
.h3fq-bel{margin:18px 0 0 .3em;max-width:34ch;font:400 15px/1.55 Switzer,sans-serif;color:#46514a}
.h3fq-bel a{color:#18201b;font-weight:600;text-decoration-color:#d8532b;text-underline-offset:3px}
.h3fq-lijst{border-top:1px solid #b9c3bc}
.h3fq-v{border-bottom:1px solid #b9c3bc}
.h3fq-v h3{margin:0}
.h3fq-v button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 2px;border:0;background:none;color:inherit;text-align:left;font:500 clamp(17px,2.2cqi,20px)/1.3 Switzer,sans-serif;cursor:pointer}
.h3fq-v button:hover{color:#b8401c}
.h3fq-v button:focus-visible{outline:2px solid #d8532b;outline-offset:2px}
.h3fq-ic{position:relative;flex:none;width:18px;height:18px}
.h3fq-ic::before,.h3fq-ic::after{content:"";position:absolute;left:0;top:8px;width:18px;height:2px;background:#d8532b;transition:transform .35s cubic-bezier(.4,0,.2,1)}
.h3fq-ic::after{transform:rotate(90deg)}
.h3fq-v button[aria-expanded="true"] .h3fq-ic::after{transform:rotate(0deg)}
.h3fq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.4,0,.2,1)}
.h3fq-a>div{overflow:hidden}
.h3fq-a p{margin:0;padding:0 40px 24px 2px;max-width:60ch;font:400 16px/1.6 Switzer,sans-serif;color:#3c463f}
.h3fq-v.is-open .h3fq-a{grid-template-rows:1fr}
.h3fq-a[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.h3fq-a,.h3fq-ic::before,.h3fq-ic::after{transition:none}}// Vragenblok met foto en kop over de rand · © 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 vragen = Array.prototype.slice.call(root.querySelectorAll('.h3fq-v'));
var still = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
var uid = 'h3fq' + Math.random().toString(36).slice(2, 7);
vragen.forEach(function (v, i) {
var b = v.querySelector('button'), a = v.querySelector('.h3fq-a');
b.id = uid + '-b' + i; a.id = uid + '-a' + i;
b.setAttribute('aria-controls', a.id); a.setAttribute('role', 'region'); a.setAttribute('aria-labelledby', b.id);
if (b.getAttribute('aria-expanded') === 'true') { v.classList.add('is-open'); a.hidden = false; }
b.addEventListener('click', function () { zet(v, !v.classList.contains('is-open')); });
b.addEventListener('keydown', function (e) {
var n = null;
if (e.key === 'ArrowDown') n = vragen[(i + 1) % vragen.length];
if (e.key === 'ArrowUp') n = vragen[(i - 1 + vragen.length) % vragen.length];
if (e.key === 'Home') n = vragen[0];
if (e.key === 'End') n = vragen[vragen.length - 1];
if (n) { e.preventDefault(); n.querySelector('button').focus(); }
});
});
function zet(v, open) {
if (open) vragen.forEach(function (w) { if (w !== v && w.classList.contains('is-open')) zet(w, false); });
var b = v.querySelector('button'), a = v.querySelector('.h3fq-a');
b.setAttribute('aria-expanded', open ? 'true' : 'false');
clearTimeout(a._t);
if (open) { a.hidden = false; void a.offsetHeight; v.classList.add('is-open'); }
else { v.classList.remove('is-open'); a._t = setTimeout(function () { a.hidden = true; }, still ? 0 : 420); }
}
}
init(document.querySelector('.jouw-container'));
More page sections
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 →