Get started with lightgallery-js CDN

GPLv3 licensed

Lightgallery-js is a responsive and customizable image and video gallery plugin for JS.

Tags:
  • gallery
  • lightbox
  • image
  • youtube
  • vimeo
  • dailymotion
  • html5 videos
  • thumbnails
  • zoom
  • fullscreen
  • responsive
  • touch
  • drag

Stable version

Copied!

How to start using lightgallery-js CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with lightgallery-js CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery@1.4.0/css/lightgallery.min.css">
</head>
<body>
  <button id="gallery-btn">Open Gallery</button>
  <div id="gallery" style="display:none;">
    <a href="image1.jpg" class="gallery-item">Image 1</a>
    <a href="image2.jpg" class="gallery-item">Image 2</a>
    <a href="image3.jpg" class="gallery-item">Image 3</a>
  </div>
  <script src="https://cdn.cdnhub.io/lightgallery-js/1.4.0/js/lightgallery.min.js"></script>
  <script src="script.js"></script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions