Multi purpose jQuery Photo Gallery Plugin mb Gallery - Download Multi-purpose jQuery Photo Gallery Plugin - mbGallery

Download Multi-purpose jQuery Photo Gallery Plugin – mbGallery

Posted on

This time I will share jQuery Plugin and tutorial about Multi-purpose jQuery Photo Gallery Plugin – mbGallery, hope it will help you in programming stack.

Multi purpose jQuery Photo Gallery Plugin mb Gallery - Download Multi-purpose jQuery Photo Gallery Plugin - mbGallery
File Size: 9.5 MB
Views Total: 3691
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

mbGallery is a powerful and ajax-enabled jQuery plugin that organize a group of images/photos and displays them in a well styled interface like gallery lightbox, image slider, thumbnail grid, inline DOM element, etc. The plugin also has the ability to invoke a photo gallery from any page via ajax technology.

Basic Usage:

1. Include the latest version of jQuery library on the web page.

1 <link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">

2. Upload the mbGallery.js script and CSS folder into your web hosting. Include the mbGallery.js after jQuery library.

1 <script type="text/javascript" src="inc/mbGallery.js"></script>

3. Create an image/photo gallery using the Html structure as follows.

01 <div id="demo" class="hide-me">
02  
03 <a class="imgThumb" href="thumbs/01.jpg"></a> <a class="imgFull" href="large/01.jpg"></a>
04 <div class="imgDesc">Description 01</div>
05  
06 <a class="imgThumb" href="thumbs/02.jpg"></a> <a class="imgFull" href="large/02.jpg"></a>
07 <div class="imgDesc">Description 02</div>
08  
09 <a class="imgThumb" href="thumbs/02.jpg"></a> <a class="imgFull" href="large/03.jpg"></a>
10 <div class="imgDesc">Description 03</div>
11  
12 ...
13  
14 </div>

4. Make the gallery hidden on page load.

1 .hide-me {
2 display: none;
3 }

5. Create an Html element to toggle the image/photo gallery in a gallery lightbox with fullscreen overlay.

01 <span onclick="$('#demo').mbGallery({
02 maskBgnd:'#ccc',
03 minWidth: 50,
04 minHeight: 50,
05 overlayOpacity:.9,
06 startFrom: 5,
07 addRaster:true,
08 printOutThumbs:false,
09 galleryTitle:'My gallery'
10 });">
11 Click to open a gallery lightbox</span>

6. All default settings and callback events.

01 containment:"body",
02 cssURL:"css/",
03 skin:"white",
04 overlayBackground:"#333",
05 exifData:false, //todo
06  
07 printOutThumbs:false,
08  
09 galleryTitle:"My Gallery",
10 imageSelector: ".imgFull",
11 thumbnailSelector: ".imgThumb",
12 titleSelector: ".imgTitle",
13 descSelector: ".imgDesc",
14  
15 minWidth: 50,
16 minHeight: 50,
17 maxWidth: 0,
18 maxHeight: 0,
19 fullScreen:true,
20 addRaster:false,
21 overlayOpacity:.5,
22 startFrom: 1,//"random"
23 fadeTime: 500,
24 slideTimer: 6000,
25 autoSlide: true,
26  
27 onOpen:function(){},
28 onBeforeClose:function(){},
29 onClose:function(){},
30 onChangePhoto:function(){}

Changelog:

2019-02-18

  • v1.3.1

This awesome jQuery plugin is developed by pupunzi. For more Advanced Usages, please check the demo page or visit the official website.

source : jquery.net