About the plugin

mBox is a simple jQuery lightbox plugin. It's main goal is to be easy to use and lightweight. As you can see in the examples below, it takes only 4 lines of code to initialize the plugin and transform your static images into awesome lightbox gallery. Also, mBox gives you some basic customization options which you can check here.

Images collection

You can call mBox on the parent element of the images collection. mBox will automatically find all images stored within the container and combine them into one lightbox gallery.

HTML
<div class="mBox">
   <img src="./img/flowers.jpg" title="KTM" />
   <img src="./img/flowers.jpg" title="KTM" />
   <img src="./img/flowers.jpg" title="KTM" />
   <img src="./img/flowers.jpg" title="KTM" />
</div>
Javascript
$('.mBox').mBox();