Snippets Buttons

Bootstrap 5 Button Hover Effects

Five pill buttons, each with a different CSS-only hover and focus effect: glow, sliding fill, lift, pulse and shine.

Bootstrap 5 No jQuery Aug 2019 2.9K views

<section class="wdw-stage">
  <div class="container" style="max-width:1100px">
    <div class="text-center mb-5">
      <span class="wdw-eyebrow">Buttons</span>
      <h1 class="wdw-heading display-6 mt-2 mb-2">Button hover effects</h1>
      <p class="wdw-muted mb-0">Five CSS-only hover styles. Hover or focus each one.</p>
    </div>
    <div class="wdw-aurora rounded-4 p-4 p-lg-5">
      <div class="row row-cols-2 row-cols-md-3 row-cols-lg-5 g-4 text-center justify-content-center">
        <div class="col"><button type="button" class="btn btn-outline-light rounded-pill w-100 fx fx-glow">Glow</button><div class="small text-white-50 mt-3">Inset halo</div></div>
        <div class="col"><button type="button" class="btn btn-outline-light rounded-pill w-100 fx fx-fill">Fill</button><div class="small text-white-50 mt-3">Sliding fill</div></div>
        <div class="col"><button type="button" class="btn btn-primary rounded-pill w-100 fx fx-lift">Lift</button><div class="small text-white-50 mt-3">Raised shadow</div></div>
        <div class="col"><button type="button" class="btn btn-outline-primary rounded-pill w-100 fx fx-pulse">Pulse</button><div class="small text-white-50 mt-3">Soft ring</div></div>
        <div class="col"><button type="button" class="btn btn-primary rounded-pill w-100 fx fx-shine">Shine</button><div class="small text-white-50 mt-3">Light sweep</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.

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