Snippets Animation

Bootstrap 5 Hero Banner with Typewriter Animation

A hero banner with an introduction headline whose last phrase types and rewrites itself, plus two call-to-action buttons.

Bootstrap 5 No jQuery Nov 2019 2.4K views

<section class="wdw-stage">
  <div class="container" style="max-width:1000px">
    <div class="wdw-aurora tw-hero rounded-5 text-center px-4 px-md-5 py-5">
      <span class="tw-pill d-inline-flex align-items-center gap-2 mb-4">
        <span class="tw-dot" aria-hidden="true"></span> Available for new projects
      </span>
      <h1 class="tw-title fw-light mb-4">
        I’m Johnathan Doe, an <strong class="fw-bold">entrepreneur, designer & front-end developer</strong>, making
        <span class="tw-type d-inline-block" id="twType" data-words='["Photoshop magic","clean interfaces","fast websites","brands people love"]' aria-label="Photoshop magic">Photoshop magic</span><span class="tw-caret" aria-hidden="true"></span>
      </h1>
      <div class="d-flex flex-wrap justify-content-center gap-3">
        <a href="#work" class="btn btn-light btn-lg rounded-pill px-4 tw-cta">Check out my work</a>
        <a href="#contact" class="btn btn-outline-light btn-lg rounded-pill px-4">Say hello</a>
      </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.