Snippets Animation

Bootstrap 5 Hero Banner with Typewriter Headline

A full-height hero banner with a typewriter headline that cycles through key benefits, a pair of call-to-action buttons and a glass dashboard preview.

Bootstrap 5 No jQuery Nov 2019 2.1K views

<section class="wdw-stage p-0 hero-wrap" id="top">
  <div class="wdw-aurora hero w-100 d-flex flex-column">
    <div class="container pt-5 mt-lg-4 flex-grow-1 d-flex flex-column" style="max-width:960px">
      <div class="text-center pt-lg-3">
        <span class="badge rounded-pill bg-white bg-opacity-10 border border-light border-opacity-25 px-3 py-2 mb-4 fw-semibold">New · Version 2.0 is live</span>
        <h1 class="hero-title display-3 fw-bold mb-3">
          Build faster with <span class="hero-type" id="heroType" data-words='["flexibility","clean code","great design","speed"]' aria-live="polite">flexibility</span><span class="hero-caret" aria-hidden="true"></span>
        </h1>
        <p class="lead hero-sub mx-auto mb-4" style="max-width:34rem">A modern component kit with extra-ordinary flexibility. Ship polished pages in hours, not weeks.</p>
        <div class="d-flex flex-column flex-sm-row gap-3 justify-content-center mb-5">
          <a href="#features" class="btn btn-light rounded-pill px-4 fw-semibold">Explore features</a>
          <a href="#demo" class="btn btn-outline-light rounded-pill px-4">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z"/></svg>
            Watch demo
          </a>
        </div>
      </div>
      <div class="hero-mock mx-auto mt-auto w-100" aria-hidden="true">
        <div class="d-flex gap-2 mb-3 align-items-center"><span class="dot"></span><span class="dot"></span><span class="dot"></span><span class="ms-auto mock-pill"></span></div>
        <div class="d-flex gap-3">
          <div class="mock-side d-none d-sm-flex flex-column gap-2">
            <span class="mock-nav active"></span><span class="mock-nav"></span><span class="mock-nav"></span><span class="mock-nav"></span>
          </div>
          <div class="flex-grow-1">
            <div class="row g-3 mb-3">
              <div class="col-4"><div class="mock-tile"><b>12.4k</b><small>Visitors</small></div></div>
              <div class="col-4"><div class="mock-tile"><b>3.8%</b><small>Conversion</small></div></div>
              <div class="col-4"><div class="mock-tile"><b>$24k</b><small>Revenue</small></div></div>
            </div>
            <div class="mock-chart d-flex align-items-end gap-2">
              <i style="height:35%"></i><i style="height:55%"></i><i style="height:42%"></i><i style="height:70%"></i><i style="height:58%"></i><i style="height:84%"></i><i style="height:66%"></i><i style="height:95%"></i><i style="height:78%"></i><i style="height:100%"></i>
            </div>
          </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.