Snippets Menu

Bootstrap 5 Expanding Column Menu

A five-column navigation strip where the active column widens to reveal a short description and a call to action.

Bootstrap 5 No jQuery Jun 2019 2.6K views

<section class="wdw-stage">
  <div class="container" style="max-width: 1040px">
    <div class="text-center mb-4">
      <span class="wdw-eyebrow">Navigation</span>
      <h2 class="wdw-heading h3 mb-1">Expanding column menu</h2>
      <p class="wdw-muted mb-0">Click, tap or focus a column to open it.</p>
    </div>
    <nav class="ec-strips wdw-card" aria-label="Sections">
      <div class="ec-strip wdw-aurora is-open">
        <button type="button" class="ec-btn" aria-expanded="true" aria-controls="ec-p1"><span class="ec-num">01</span><span class="ec-name">Overview</span></button>
        <div class="ec-panel" id="ec-p1"><p>A quick tour of everything we do, from first sketch to launch day.</p><a href="#" class="btn btn-light rounded-pill px-4">Open overview</a></div>
      </div>
      <div class="ec-strip bg-primary-subtle text-primary-emphasis">
        <button type="button" class="ec-btn" aria-expanded="false" aria-controls="ec-p2"><span class="ec-num">02</span><span class="ec-name">Work</span></button>
        <div class="ec-panel" id="ec-p2"><p>Selected projects across brand, product and web.</p><a href="#" class="btn btn-light rounded-pill px-4">See our work</a></div>
      </div>
      <div class="ec-strip bg-primary-subtle text-primary-emphasis">
        <button type="button" class="ec-btn" aria-expanded="false" aria-controls="ec-p3"><span class="ec-num">03</span><span class="ec-name">Studio</span></button>
        <div class="ec-panel" id="ec-p3"><p>Meet the small team behind the pixels.</p><a href="#" class="btn btn-light rounded-pill px-4">Meet the team</a></div>
      </div>
      <div class="ec-strip bg-primary-subtle text-primary-emphasis">
        <button type="button" class="ec-btn" aria-expanded="false" aria-controls="ec-p4"><span class="ec-num">04</span><span class="ec-name">Journal</span></button>
        <div class="ec-panel" id="ec-p4"><p>Notes on design, code and running a studio.</p><a href="#" class="btn btn-light rounded-pill px-4">Read the journal</a></div>
      </div>
      <div class="ec-strip bg-primary-subtle text-primary-emphasis">
        <button type="button" class="ec-btn" aria-expanded="false" aria-controls="ec-p5"><span class="ec-num">05</span><span class="ec-name">Contact</span></button>
        <div class="ec-panel" id="ec-p5"><p>Have a project in mind? Let's talk this week.</p><a href="#" class="btn btn-light rounded-pill px-4">Say hello</a></div>
      </div>
    </nav>
  </div>
</section>

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

Free to use in personal and commercial projects under the MIT license.