Powerful jQuery Responsive Image Gallery Plugin Blueimp Gallery - Free Download Powerful Responsive Image Gallery Plugin - Blueimp Gallery

Free Download Powerful Responsive Image Gallery Plugin – Blueimp Gallery

Posted on

This time I will share jQuery Plugin and tutorial about Powerful Responsive Image Gallery Plugin – Blueimp Gallery, hope it will help you in programming stack.

Powerful jQuery Responsive Image Gallery Plugin Blueimp Gallery - Free Download Powerful Responsive Image Gallery Plugin - Blueimp Gallery
File Size: 215 KB
Views Total: 35362
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Blueimp Gallery is a powerful and multi-functional jQuery/Vanilla JavaScript plugin for creating responsive, touch-friendly and fully configurable image/video gallery, carousel slider and lightbox gallery on the page.

Key Features:

  • Swipe, mouse and keyboard navigation.
  • Cool transition effects.
  • Full screen gallery lightbox mode.
  • Infinite carousel slider.
  • Slideshow functionality supported.
  • Supports Youtube and Vimeo videos.

Basic Usage:

1. Load the Blueimp Gallery’s stylesheet file(s) in the document.

1 <!-- Core -->
2 <link rel="stylesheet" href="css/blueimp-gallery.css">
3 <!-- Video Support -->
4 <link rel="stylesheet" href="css/blueimp-gallery-video.css">
5 <!-- Nav Indicators -->
6 <link rel="stylesheet" href="css/blueimp-gallery-indicator.css">
7  
8 <!-- OR All In One + Minified -->
9 <link rel="stylesheet" href="css/blueimp-gallery.min.css">

2. Load the Blueimp Gallery’s JavaScript files in the document.

1 <!-- As A Vanilla JavaScript Plugin -->
2 <script src="js/blueimp-gallery.min.js"></script>
3  
4 <!-- As A jQuery Plugin -->
5 <script src="/path/to/cdn/jquery.min.js"></script>
6 <script src="js/blueimp-gallery.min.js"></script>

3. Create an inline carousel slider from media links as these:

01 <!-- Media Links -->
02 <div id="links">
03   <a href="1.jpg" title="Alt 1" data-description="Description 1 (OPTIONAL)">
04     <img src="thumb-1.jpg" alt="Alt 1" />
05   </a>
06   <a href="2.jpg" title="Alt 1">
07     <img src="thumb-1.jpg" alt="Alt 1" />
08   </a>
09   <a href="3.jpg" title="Alt 1">
10     <img src="thumb-1.jpg" alt="Alt 1" />
11   </a>
12   <a href="1.mp4"
13      title="HTML5 Video"
14      type="video/mp4"
15      data-poster="poster.jpg"
16      data-sources='[{"href": "1.mp4", "type": "video/mp4"}, {"href": "1.ogg", "type": "video/ogg"}]'>
17      HTML5 Video
18   </a>
19 </div>
20  
21 <!-- <a href="https://www.jqueryscript.net/tags.php?/Carousel/">Carousel</a> Controls -->
22 <div id="blueimp-gallery-carousel" class="blueimp-gallery blueimp-gallery-carousel"
23 >
24   <div class="slides"></div>
25   <h3 class="title"></h3>
26   <a class="prev">‹</a>
27   <a class="next">›</a>
28   <a class="play-pause"></a>
29   <ol class="indicator"></ol>
30 </div>
1 blueimp.Gallery(document.getElementById('example').getElementsByTagName('a'), {
2   container: '#blueimp-gallery-carousel',
3   carousel: true
4 })

4. To initialize the plugin as a gallery lightbox, call the function as follows:

1 document.getElementById('example').onclick = function(event) {
2   event = event || window.event
3   var target = event.target || event.srcElement,
4     link = target.src ? target.parentNode : target,
5     options = { index: link, event: event },
6     links = this.getElementsByTagName('a')
7   blueimp.Gallery(links, options)
8 }

5. You’re also allowed to define the gallery content in the JavaScript as follows:

01 blueimp.Gallery([
02   {
03     title: 'YouYube video',
05     type: 'text/html',
06     youtube: 'VIDEO_ID',
08   },
09   {
10     title: 'Vimeo video',
11     href: 'https://vimeo.com/VIDEO_ID',
12     type: 'text/html',
13     vimeo: 'VIDEO_ID',
15   },
16   {
17     title: 'HTML5 Video',
18     type: 'video/*',
19     poster: 'poster.jpg',
20     sources: [
21       {
22         href: '1.mp4',
23         type: 'video/mp4'
24       },
25       {
26         href: '1.ogg',
27         type: 'video/ogg'