Snippets Animation

Bootstrap 5 Animated Snow Login Form

A frosted-glass login card over a night sky with a gently falling canvas snow animation.

Bootstrap 5 No jQuery Oct 2020 2.5K views

<section class="wdw-stage wdw-aurora wdw-snow-stage position-relative overflow-hidden">
  <canvas id="snowCanvas" class="wdw-snow" aria-hidden="true"></canvas>
  <div class="container position-relative" style="max-width:420px">
    <div class="wdw-glass p-4 p-md-5" data-bs-theme="dark">
      <div class="text-center mb-4">
        <span class="wdw-icon mx-auto mb-3" style="width:3.25rem;height:3.25rem"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M4.9 7l14.2 10M4.9 17L19.1 7M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5"/></svg></span>
        <h2 class="wdw-heading h3 mb-1">Welcome back</h2>
        <p class="wdw-muted mb-0">Sign in to your account</p>
      </div>
      <form novalidate id="snowForm">
        <div class="form-floating mb-3"><input type="text" class="form-control" id="snUser" placeholder="Username" autocomplete="username"><label for="snUser">Username</label></div>
        <div class="form-floating mb-3"><input type="password" class="form-control" id="snPass" placeholder="Password" autocomplete="current-password"><label for="snPass">Password</label></div>
        <div class="d-flex justify-content-between align-items-center mb-4">
          <div class="form-check mb-0 d-flex align-items-center gap-2 ps-0"><input class="form-check-input m-0" type="checkbox" id="snRem"><label class="form-check-label small" for="snRem">Remember me</label></div>
          <a href="#" class="small link-light link-underline-opacity-0 link-underline-opacity-100-hover">Forgot password?</a>
        </div>
        <button class="btn btn-primary rounded-pill w-100" type="submit">Log in</button>
      </form>
    </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.