Snippets Hover

Bootstrap 5 Team Grid with Hover Reveal

A responsive team grid of portrait tiles that slide open on hover or keyboard focus to show a short bio and social links, with an always-open state on touch screens.

Bootstrap 5 No jQuery Sep 2020 2.2K views

<section class="wdw-stage">
  <div class="container" style="max-width: 1120px">
    <header class="text-center mb-5">
      <span class="wdw-eyebrow mb-2">The team</span>
      <h2 class="wdw-heading display-6 mb-2">Meet the people behind the product</h2>
      <p class="wdw-muted mx-auto mb-0" style="max-width: 34rem">Hover or focus a card to read a short bio and get in touch.</p>
    </header>
    <div class="row g-3 g-lg-4">
      <div class="col-6 col-lg-3">
        <article class="team-tile" tabindex="0">
          <img src="https://i.pravatar.cc/480?img=12" alt="Portrait of Alex Morgan" width="480" height="480" loading="lazy">
          <div class="team-tile-info">
            <h3 class="h5 fw-bold mb-0">Alex Morgan</h3>
            <p class="small mb-0 opacity-75">Chief Executive Officer</p>
            <div class="team-tile-more">
              <p class="small mt-3 mb-3">Leads strategy and partnerships with fifteen years in product-led growth.</p>
              <div class="d-flex gap-2"><a href="#" class="team-soc" aria-label="Alex Morgan on LinkedIn"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2zM4 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg></a><a href="#" class="team-soc" aria-label="Alex Morgan on GitHub"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.9a3.4 3.4 0 0 0-1-2.6c3.1-.3 6.4-1.5 6.4-7A5.4 5.4 0 0 0 20 4.8 5 5 0 0 0 19.9 1S18.7.7 16 2.5a13.4 13.4 0 0 0-7 0C6.3.7 5.1 1 5.1 1A5 5 0 0 0 5 4.8 5.4 5.4 0 0 0 3.5 8.5c0 5.4 3.3 6.6 6.4 7a3.4 3.4 0 0 0-1 2.6V22"/></svg></a><a href="#" class="team-soc" aria-label="Alex Morgan on Email"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></a></div>
            </div>
          </div>
        </article>
      </div>
      <div class="col-6 col-lg-3">
        <article class="team-tile" tabindex="0">
          <img src="https://i.pravatar.cc/480?img=47" alt="Portrait of Elizabeth Shaw" width="480" height="480" loading="lazy">
          <div class="team-tile-info">
            <h3 class="h5 fw-bold mb-0">Elizabeth Shaw</h3>
            <p class="small mb-0 opacity-75">Marketing Lead</p>
            <div class="team-tile-more">
              <p class="small mt-3 mb-3">Builds campaigns that turn curious visitors into loyal customers.</p>
              <div class="d-flex gap-2"><a href="#" class="team-soc" aria-label="Elizabeth Shaw on LinkedIn"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2zM4 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg></a><a href="#" class="team-soc" aria-label="Elizabeth Shaw on GitHub"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.9a3.4 3.4 0 0 0-1-2.6c3.1-.3 6.4-1.5 6.4-7A5.4 5.4 0 0 0 20 4.8 5 5 0 0 0 19.9 1S18.7.7 16 2.5a13.4 13.4 0 0 0-7 0C6.3.7 5.1 1 5.1 1A5 5 0 0 0 5 4.8 5.4 5.4 0 0 0 3.5 8.5c0 5.4 3.3 6.6 6.4 7a3.4 3.4 0 0 0-1 2.6V22"/></svg></a><a href="#" class="team-soc" aria-label="Elizabeth Shaw on Email"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></a></div>
            </div>
          </div>
        </article>
      </div>
      <div class="col-6 col-lg-3">
        <article class="team-tile" tabindex="0">
          <img src="https://i.pravatar.cc/480?img=33" alt="Portrait of Doug Reyes" width="480" height="480" loading="lazy">
          <div class="team-tile-info">
            <h3 class="h5 fw-bold mb-0">Doug Reyes</h3>
            <p class="small mb-0 opacity-75">Head of Support</p>
            <div class="team-tile-more">
              <p class="small mt-3 mb-3">Keeps response times short and customers genuinely happy.</p>
              <div class="d-flex gap-2"><a href="#" class="team-soc" aria-label="Doug Reyes on LinkedIn"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2zM4 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg></a><a href="#" class="team-soc" aria-label="Doug Reyes on GitHub"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.9a3.4 3.4 0 0 0-1-2.6c3.1-.3 6.4-1.5 6.4-7A5.4 5.4 0 0 0 20 4.8 5 5 0 0 0 19.9 1S18.7.7 16 2.5a13.4 13.4 0 0 0-7 0C6.3.7 5.1 1 5.1 1A5 5 0 0 0 5 4.8 5.4 5.4 0 0 0 3.5 8.5c0 5.4 3.3 6.6 6.4 7a3.4 3.4 0 0 0-1 2.6V22"/></svg></a><a href="#" class="team-soc" aria-label="Doug Reyes on Email"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></a></div>
            </div>
          </div>
        </article>
      </div>
      <div class="col-6 col-lg-3">
        <article class="team-tile" tabindex="0">
          <img src="https://i.pravatar.cc/480?img=68" alt="Portrait of Fabricio Costa" width="480" height="480" loading="lazy">
          <div class="team-tile-info">
            <h3 class="h5 fw-bold mb-0">Fabricio Costa</h3>
            <p class="small mb-0 opacity-75">Chief Technology Officer</p>
            <div class="team-tile-more">
              <p class="small mt-3 mb-3">Designs the platform and mentors a team of twenty engineers.</p>
              <div class="d-flex gap-2"><a href="#" class="team-soc" aria-label="Fabricio Costa on LinkedIn"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2zM4 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg></a><a href="#" class="team-soc" aria-label="Fabricio Costa on GitHub"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.9a3.4 3.4 0 0 0-1-2.6c3.1-.3 6.4-1.5 6.4-7A5.4 5.4 0 0 0 20 4.8 5 5 0 0 0 19.9 1S18.7.7 16 2.5a13.4 13.4 0 0 0-7 0C6.3.7 5.1 1 5.1 1A5 5 0 0 0 5 4.8 5.4 5.4 0 0 0 3.5 8.5c0 5.4 3.3 6.6 6.4 7a3.4 3.4 0 0 0-1 2.6V22"/></svg></a><a href="#" class="team-soc" aria-label="Fabricio Costa on Email"><svg stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true" width="18" height="18" viewBox="0 0 24 24"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></a></div>
            </div>
          </div>
        </article>
      </div>
    </div>
  </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.