Snippets Accordion

Bootstrap 5 Horizontal Expanding Accordion

A horizontal expanding accordion where the active panel opens wide beside slim icon tabs, stacking vertically on small screens.

Bootstrap 5 No jQuery Mar 2020 2.2K views

<section class="wdw-stage"><div class="container" style="max-width:1000px">
<div class="text-center mb-4"><span class="wdw-eyebrow">What we do</span><h2 class="wdw-heading display-6 mt-1">From first sketch to launch day</h2></div>
<div class="wdw-hacc wdw-card-sm p-2 gap-2">
<div class="wdw-hpanel is-open"><button type="button" class="wdw-hbtn" aria-expanded="true" aria-controls="hp0" id="hb0"><span class="wdw-icon"><i class="bi bi-palette" aria-hidden="true"></i></span><span class="wdw-hlabel">Design</span><span class="wdw-hnum" aria-hidden="true">01</span></button><div class="wdw-hbody" id="hp0" role="region" aria-labelledby="hb0"><div class="wdw-hinner d-flex flex-column h-100"><h3 class="h4 fw-bold mb-2 d-flex align-items-center wdw-htitle">Design</h3><p class="wdw-muted mb-3">Systems, brand identity and interfaces that feel consistent across every screen and touchpoint.</p><div class="mt-auto d-flex align-items-end justify-content-between gap-3"><div><div class="fs-2 fw-bold text-primary lh-1">120+</div><div class="small wdw-muted mt-1">design systems shipped</div></div><a href="#" class="link-primary fw-semibold text-decoration-none">Learn more <i class="bi bi-arrow-right" aria-hidden="true"></i></a></div></div></div></div>
<div class="wdw-hpanel"><button type="button" class="wdw-hbtn" aria-expanded="false" aria-controls="hp1" id="hb1"><span class="wdw-icon"><i class="bi bi-code-slash" aria-hidden="true"></i></span><span class="wdw-hlabel">Develop</span><span class="wdw-hnum" aria-hidden="true">02</span></button><div class="wdw-hbody" id="hp1" role="region" aria-labelledby="hb1"><div class="wdw-hinner d-flex flex-column h-100"><h3 class="h4 fw-bold mb-2 d-flex align-items-center wdw-htitle">Develop</h3><p class="wdw-muted mb-3">Clean, accessible front-end builds that are fast on real devices and easy to maintain.</p><div class="mt-auto d-flex align-items-end justify-content-between gap-3"><div><div class="fs-2 fw-bold text-primary lh-1">98</div><div class="small wdw-muted mt-1">average Lighthouse score</div></div><a href="#" class="link-primary fw-semibold text-decoration-none">Learn more <i class="bi bi-arrow-right" aria-hidden="true"></i></a></div></div></div></div>
<div class="wdw-hpanel"><button type="button" class="wdw-hbtn" aria-expanded="false" aria-controls="hp2" id="hb2"><span class="wdw-icon"><i class="bi bi-graph-up-arrow" aria-hidden="true"></i></span><span class="wdw-hlabel">Grow</span><span class="wdw-hnum" aria-hidden="true">03</span></button><div class="wdw-hbody" id="hp2" role="region" aria-labelledby="hb2"><div class="wdw-hinner d-flex flex-column h-100"><h3 class="h4 fw-bold mb-2 d-flex align-items-center wdw-htitle">Grow</h3><p class="wdw-muted mb-3">Analytics, experiments and SEO work that turn steady traffic into measurable results.</p><div class="mt-auto d-flex align-items-end justify-content-between gap-3"><div><div class="fs-2 fw-bold text-primary lh-1">3.4x</div><div class="small wdw-muted mt-1">average organic growth</div></div><a href="#" class="link-primary fw-semibold text-decoration-none">Learn more <i class="bi bi-arrow-right" aria-hidden="true"></i></a></div></div></div></div>
<div class="wdw-hpanel"><button type="button" class="wdw-hbtn" aria-expanded="false" aria-controls="hp3" id="hb3"><span class="wdw-icon"><i class="bi bi-headset" aria-hidden="true"></i></span><span class="wdw-hlabel">Support</span><span class="wdw-hnum" aria-hidden="true">04</span></button><div class="wdw-hbody" id="hp3" role="region" aria-labelledby="hb3"><div class="wdw-hinner d-flex flex-column h-100"><h3 class="h4 fw-bold mb-2 d-flex align-items-center wdw-htitle">Support</h3><p class="wdw-muted mb-3">Friendly help when you need it, with documented fixes and quick turnarounds.</p><div class="mt-auto d-flex align-items-end justify-content-between gap-3"><div><div class="fs-2 fw-bold text-primary lh-1"><4h</div><div class="small wdw-muted mt-1">first response time</div></div><a href="#" class="link-primary fw-semibold text-decoration-none">Learn more <i class="bi bi-arrow-right" aria-hidden="true"></i></a></div></div></div></div>
<div class="wdw-hpanel"><button type="button" class="wdw-hbtn" aria-expanded="false" aria-controls="hp4" id="hb4"><span class="wdw-icon"><i class="bi bi-rocket-takeoff" aria-hidden="true"></i></span><span class="wdw-hlabel">Launch</span><span class="wdw-hnum" aria-hidden="true">05</span></button><div class="wdw-hbody" id="hp4" role="region" aria-labelledby="hb4"><div class="wdw-hinner d-flex flex-column h-100"><h3 class="h4 fw-bold mb-2 d-flex align-items-center wdw-htitle">Launch</h3><p class="wdw-muted mb-3">Staging, QA and a calm release day, followed by monitoring and polish.</p><div class="mt-auto d-flex align-items-end justify-content-between gap-3"><div><div class="fs-2 fw-bold text-primary lh-1">0</div><div class="small wdw-muted mt-1">minutes of downtime</div></div><a href="#" class="link-primary fw-semibold text-decoration-none">Learn more <i class="bi bi-arrow-right" aria-hidden="true"></i></a></div></div></div></div>
</div></div></section>

Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.