Gallery Lightbox Javascript For Photos and Videos | MK Lightbox

MK Lightbox is a simple and responsive Lightbox photo and video unlock script – simple in code and easy to use. Reloading high-resolution images and displaying metadata text in the Simplified view are supported.

This simple Lightbox Javascript is for images and videos in a pop-up window or a simplified gallery box to navigate without having to write any JS code.

Must Read – A simple Pure CSS Image Gallery lightbox | CSSBox

How to make use of it:

1. To use the lightbox library, merely add the next JavaScript and CSS files to the webpage.

<link rel="stylesheet" href="mklb/css/mklb.css" />
<script src="mklb/js/mklb.js"></script>

2. Attach the lightbox to a picture inside the doc.

<img class="mklbItem" src="/path/to/image/" />

3. Fetch and show one other picture (e.g. hi-res image) within the lightbox.

<img class="mklbItem" src="/path/to/thumbnail/" data-src="/path/to/orginal/" />

4. Fetch and show a Video participant within the lightbox.

<img class="mklbItem" src="/path/to/thumbnail/" data-video-src="/path/to/video/" />

5. Youtube video is supported as nicely.

<a href="#" class="mklbItem" data-youtube-id="VIDEO ID">Open the Youtube video in the lightbox.</a>

6. Create a gallery lightbox from a group of photos with identical data-gallery values.

<img class="mklbItem" src="/path/to/image1/" data-gallery="myGal" />
<img class="mklbItem" src="/path/to/image2/" data-gallery="myGal" />
<img class="mklbItem" src="/path/to/image3/" data-gallery="myGal" />


Responsive Lightbox Gallery jQuery Plugin | lightGallery
Lightbox Plugin For Responsive And Dynamic Images | Chocolat

See Demo And Download

Official Website(marcuskirschen): Click Here

This superior jQuery/javascript plugin is developed by marcuskirschen. For extra Advanced Usage, please go to the official website.