Get started with bs5-lightbox CDN

MIT licensed

Free, lightweight BS5 library: create responsive galleries, modal dialogs for Bootstrap 5 projects.

Tags:
  • lightbox
  • gallery
  • bootstrap
  • bootstrap 5
  • modal
  • carousel

Stable version

Copied!

How to start using bs5-lightbox CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with bs5-lightbox CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css">
  <link rel="stylesheet" href="https://cdn.cdnhub.io/bs5-lightbox/1.8.3/bs5-lightbox.min.css">
</head>
<body>
  <button type="button" class="btn btn-primary mb-3" data-bs-toggle="lightbox" data-bs-target="#image1">
    Open Lightbox
  </button>

  <div id="image1" class="lightbox-image">
    <img src="image.jpg" class="img-fluid" alt="Image">
  </div>

  <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
  <script src="https://cdn.cdnhub.io/bs5-lightbox/1.8.3/bs5-lightbox.min.js"></script>
</body>
</html>
Copied!

All versions