Snippets Buttons

Bootstrap 5 Explore Button with Hover Animation

A set of pill call-to-action buttons in filled, outline and secondary styles, plus icon-left, icon-only and loading variants. The arrow nudges forward and rotates on hover or keyboard focus.

Bootstrap 5 No jQuery Aug 2019 2.5K views

<section class="wdw-stage">
  <div class="container text-center" style="max-width:860px">
    <span class="wdw-eyebrow">Hover buttons</span>
    <h2 class="wdw-heading h3 mt-1 mb-2">Explore button with hover reveal</h2>
    <p class="wdw-muted mb-5">Hover or focus a button: the label shifts right while the arrow nudges forward and rotates.</p>
    <div class="d-flex flex-wrap justify-content-center gap-4 mb-4">
      <button type="button" class="btn btn-primary btn-lg rounded-pill wdw-explore">
        <span>Explore</span>
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
      </button>
      <button type="button" class="btn btn-outline-primary btn-lg rounded-pill wdw-explore">
        <span>Browse work</span>
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
      </button>
      <button type="button" class="btn btn-secondary btn-lg rounded-pill wdw-explore">
        <span>Get started</span>
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
      </button>
    </div>
    <div class="d-flex flex-wrap justify-content-center align-items-center gap-4">
      <button type="button" class="btn btn-primary btn-lg rounded-pill wdw-explore wdw-explore-left">
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
        <span>Icon left</span>
      </button>
      <button type="button" class="btn btn-outline-primary btn-lg rounded-circle wdw-explore wdw-explore-only" aria-label="Explore">
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
      </button>
      <button type="button" class="btn btn-primary btn-lg rounded-pill wdw-explore" id="loadBtn">
        <span class="wdw-explore-label">Load more</span>
        <span class="wdw-explore-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
      </button>
    </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.