Snippets Animation

Bootstrap 5 Hero Section with Typewriter Text

A portfolio hero section with a typewriter line that cycles through skills, two call-to-action buttons, and a photo with a floating stat card.

Bootstrap 5 No jQuery Nov 2019 2.1K views

<section class="wdw-stage">
  <div class="container" style="max-width:1040px">
    <div class="wdw-card overflow-hidden p-4 p-lg-5">
      <div class="row align-items-center g-4 g-lg-5">
        <div class="col-lg-7">
          <span class="badge rounded-pill bg-primary-subtle text-primary-emphasis px-3 py-2 mb-3">
            <span class="wdw-dot me-2"></span>Available for new projects
          </span>
          <h1 class="wdw-heading display-5 mb-3">
            I’m Angelina Doe, a web designer who’s great at
            <span class="wdw-type text-primary" id="wdwType" aria-live="off"></span><span class="wdw-caret" aria-hidden="true"></span>
          </h1>
          <p class="wdw-muted fs-5 mb-4">I design and build fast, accessible websites for small teams and growing brands.</p>
          <div class="d-flex flex-wrap gap-2">
            <a class="btn btn-primary rounded-pill px-4" href="#">Check out my work
              <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
            </a>
            <a class="btn btn-outline-primary rounded-pill px-4" href="#">Get in touch</a>
          </div>
          <p class="visually-hidden">Skills: Photoshop, HTML, CSS3, Accessibility.</p>
        </div>
        <div class="col-lg-5">
          <div class="wdw-photo position-relative">
            <img class="img-fluid w-100" src="https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=900&q=80" alt="Laptop showing code on a designer's desk" width="900" height="600">
            <div class="wdw-float wdw-card-sm d-flex align-items-center gap-3 px-3 py-2">
              <span class="wdw-icon" style="width:2.25rem;height:2.25rem">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z"/></svg>
              </span>
              <div class="lh-sm"><div class="fw-bold">120+ projects</div><small class="wdw-muted">5.0 client rating</small></div>
            </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.