Get started with light7 CDN

MIT licensed

Light7 is a library for creating lightweight, customizable lightboxes.

Tags:
  • light7
  • UI
  • webapp
  • css
  • fonts
  • ios
  • android
  • mobile

Stable version

Copied!

How to start using light7 CDN


<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="https://cdn.cdnhub.io/light7/0.4.3/css/light7.min.css">
  <script src="https://cdn.jsdelivr.net/npm/light7@0.4.3/dist/light7.min.js"></script>
  <style>
    body {
      margin: 0;
      padding: 0;
    }
    #my-image {
      width: 100%;
      height: 100vh;
      object-fit: cover;
    }
  </style>
</head>
<body>
  <img id="my-image" src="path/to/your/image.jpg" alt="Your Image">
  <script>
    const lightGallery = lightgallery({
      selector: '#my-image', // the image element selector
      plugins: [
        lightgalleryPlugin(lgZoom), // enable zoom plugin
      ],
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions