Get started with nanogallery2 CDN

GPL-3.0-only licensed

Nanogallery2 is a lightweight and customizable image viewer library for JS and TypeScript projects.

Tags:
  • gallery galleries photo lightbox image album

Stable version

Copied!

How to start using nanogallery2 CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with nanogallery2 CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/nanogallery2/3.0.5/css/nanogallery2.css" />
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script src="https://cdn.cdnhub.io/nanogallery2/3.0.5/jquery.nanogallery2.min.js"></script>
</head>
<body>
  <div id="gallery">
    <a href="image1.jpg" class="gallery">
      <img src="image1.jpg" alt="Image 1">
    </a>
    <a href="image2.jpg" class="gallery">
      <img src="image2.jpg" alt="Image 2">
    </a>
    <a href="image3.jpg" class="gallery">
      <img src="image3.jpg" alt="Image 3">
    </a>
  </div>
  <script>
    $(document).ready(function() {
      $('#gallery').nanogallery2();
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions