Press "Enter" to skip to content

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 for images and videos in a pop-up window or a simplified gallery box to navigate without having to write any JS code.

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" />

Tiny Gallery Lightbox For Images & Videos, MK Lightbox Plugin/Github


See Demo And Download

Official Website(marcuskirschen): Click Here

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

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *