Snippets Card

Bootstrap 5 Article News Card with Hover Reveal

A pair of editorial news cards with a date badge, category tag and meta row. On hover the card lifts, the photo zooms and the excerpt expands.

Bootstrap 5 No jQuery Oct 2019 2.6K views

<section class="wdw-stage">
  <div class="container" style="max-width:960px">
    <div class="text-center mb-5">
      <span class="wdw-eyebrow">Editorial</span>
      <h1 class="wdw-heading h2 mt-1 mb-0">Latest stories</h1>
    </div>
    <div class="row g-4 justify-content-center">
      <div class="col-md-6 col-lg-5">
        <article class="news-card wdw-card h-100 overflow-hidden is-open">
          <div class="news-media position-relative">
            <a href="#" class="d-block h-100" tabindex="-1" aria-hidden="true"><img src="https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&w=800&q=70" alt="New York skyline at dusk" loading="lazy"></a>
            <time class="news-date" datetime="2026-03-27"><span class="visually-hidden">March 27</span><b aria-hidden="true">27</b><small aria-hidden="true">Mar</small></time>
            <span class="badge rounded-pill text-bg-light news-tag">Photos</span>
          </div>
          <div class="p-4">
            <h2 class="h5 wdw-heading mb-1"><a href="#" class="text-reset text-decoration-none stretched-link">City Lights in New York</a></h2>
            <p class="text-primary fw-semibold mb-2">The city that never sleeps.</p>
            <p class="news-excerpt wdw-muted small mb-0">New York, the largest city in the U.S., is an architectural marvel with plenty of historic monuments, magnificent buildings and countless dazzling skyscrapers.</p>
          </div>
          <footer class="d-flex gap-3 px-4 pb-4 small wdw-muted position-relative">
            <span class="d-inline-flex align-items-center gap-1"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>6 mins ago</span>
            <span class="d-inline-flex align-items-center gap-1"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a8 8 0 0 1-11.6 7.1L3 20l1-4.6A8 8 0 1 1 21 12z"/></svg>39 comments</span>
          </footer>
        </article>
      </div>
      <div class="col-md-6 col-lg-5">
        <article class="news-card wdw-card h-100 overflow-hidden">
          <div class="news-media position-relative">
            <a href="#" class="d-block h-100" tabindex="-1" aria-hidden="true"><img src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=800&q=70" alt="Valley under a clear sky" loading="lazy"></a>
            <time class="news-date" datetime="2026-04-14"><span class="visually-hidden">April 14</span><b aria-hidden="true">14</b><small aria-hidden="true">Apr</small></time>
            <span class="badge rounded-pill text-bg-light news-tag">Travel</span>
          </div>
          <div class="p-4">
            <h2 class="h5 wdw-heading mb-1"><a href="#" class="text-reset text-decoration-none stretched-link">Above the Clouds</a></h2>
            <p class="text-primary fw-semibold mb-2">Slow travel, wide views.</p>
            <p class="news-excerpt wdw-muted small mb-0">A week on the high trails, with quiet villages, thin air and mornings that make every early alarm worth it.</p>
          </div>
          <footer class="d-flex gap-3 px-4 pb-4 small wdw-muted position-relative">
            <span class="d-inline-flex align-items-center gap-1"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>2 hours ago</span>
            <span class="d-inline-flex align-items-center gap-1"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a8 8 0 0 1-11.6 7.1L3 20l1-4.6A8 8 0 1 1 21 12z"/></svg>12 comments</span>
          </footer>
        </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.