Beautiful gallery with jQuery sorting. Image gallery on jQuery Jquery gallery

Today, responsive design has become number one choice for designers and developers, as more and more people want their websites to run on smart devices. Responsive design draws mobile user’s attention and helps you to generate leads and sales which take your business to another level.

Nowadays, you can create responsive layout for almost everything such as menu, grid, column and even pictures and images. If you want to display your website content, images and videos in a responsive gallery style then the following jQuery Image gallery plugins might help you out with it.

This article includes some of the Best Responsive jQuery Image Gallery pluginswhich will not only enable you to create responsive image galleries for your websites but also display them in elegant styles to make your website more beautiful and visually stunning.

Below is the list of Best Responsive jQuery Image Gallery Plugins worth considering in 2016.

Bootstrap Photo Gallery is a simple jQuery plugin that will create a Bootstrap based responsive Photo Gallery for your images.
This plugin supports variable height for the images and captions. An optional “modal” box with “next” and “previous” paging is also included.
Demo & Download

2. JK Responsive YouTube and Image Gallery


It is a modern, lightbox style gallery for displaying images and YouTube videos on your site. The gallery interface is fully responsive and works beautifully across all devices big or small.
Demo & Download

3. Faba


FABA is responsive Facebook albums and photos gallery jquery plugin that will load all the albums and photos from selected Facebook Page.

There are around 90 options you can edit and you can customize almost everything: animations, hover effects, every part of hover animations, text’s, behaviors, and many more. You can integrate beautiful albums into your project, or web page.


xGallerify is a lightweight, responsive gallery plugin which allows you to create beautiful image galleries for your websites. This plugin is lightweight (3kb of file size), easy to use and comes with number of customizable options and styles.
Demo & Download


Instagram Element is a premium Instagram plugin for bloggers, photographers, models, and anyone looking to increase their presence on Instagram.
This plugin is fully responsive and allows you to easily manage 50+ options and lets you display your photos beautifully on any device.


SnapGallery is a simple jQuery plugin that turns an ugly list of differently sized images into a beautiful, customizable gallery with one line of JavaScript.

It’s completely responsive, customizable and allows you to select the spacing between images, the minimum width allowed before stacking and the maximum number of columns, with more options on the way!
Demo & Download


Eagle Gallery this is modern gallery with image zoom functionality. To manage the gallery you can use gestures or control buttons. This is a fully responsive gallery which has support touch screen and was created for mobile devices, laptops and desktops.

With this gallery you can easily create a product gallery on your internet shop for detailed view and customize it with help of options.


The Unite Gallery is multipurpose JavaScript gallery based on jQuery library. It's built with a modular technique with a lot of accent of ease of use and customization. It's very easy to customize the gallery, changing its skin via css, and even writing your own theme. Yet this gallery is very powerful, fast and has the most of nowadays must have features like responsiveness, touch enabled and even zoom feature, it's unique effect.
Demo & Download


jQuery lightGallery is a lightweight jQuery lightbox gallery for displaying image and video gallery.

Lightgallery supports touch and swipe navigation on touchscreen devices, as well as mouse drag for desktops. This allows users to navigate between slides by either swipe or mouse drag.

Lightgallery comes with a numerous number of options, which allow you to customize the plugin very easily. You can easily customize the look and feel of the gallery by updating SASS variables.
Demo & Download


This is another great jQuery image gallery plugin which allows you to create grid layout gallery for your pictures and videos. This plugins is fully responsive and bundled with number of features like social sharing, infinite scrolling, css3 animations, filters and much more.


blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers.

It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading and can be extended to display additional content types.
Demo & Download


nanoGALLERY is a touch enabled and responsive image gallery with justified, cascading and grid layout. It supports self hosted images and pulling in Flickr, Picasa, Google+ and SmugMug photo albums.

Featuring multi-level navigation in albums, combinable hover effects on thumbnails, responsive thumbnail sizes, multiple layouts, slideshow, fullscreen, pagination, image lazy load and much more.
Demo & Download


flipGallery is a free jQuery powered photo gallery with sleek flipping transitions between thumbnails and lightbox enlargements. Other features include dynamic image streaming, auto pagination, auto cropping and transparent image overlay.

This plugin also has a premium version which comes with few nifty features and certainly includes responsiveness.
Demo & Download


Fancy Gallery is responsive jQuery image gallery plugin which allows you to display your images and videos in fancy style. This plugins has lots of customization options and you can add unlimited albums, videos, pictures and much more.

The plugin comes with different hover effects for the thumbnails and titles, which can also be adjusted. You can choose between 7 predefined color themes or just create your own color theme easily.


Balanced Gallery is a jQuery plugin that evenly distributes photos across rows or columns, making the most of the space provided. Photos are scaled based on the size of the 'container' element by default, making Balanced Gallery a good choice for responsive websites.
Demo & Download

16. S Gallery


S Gallery makes use of HTML5's Full Screen API, and relies heavily on CSS3 animations goodness and CSS3 transforms, so it will work only in browsers that support these features.
Demo & Download

17. Ultimate Grid Responsive Gallery


This is a HTML | CSS | JQuery Grid with a Lightbox, you can specify thumbnails for the grid and when you click on it to open the lightbox it will load the normal image, you can specify the text for the captions and for the lightbox. Also you don’t have to load all the images at once (for performance purposes) so you can specify the number of images to load when it first loads and the number of images to load when you click the “load more images” button.


Responsive Thumbnail Gallery is a jQuery plugin for creating image galleries that scale to fit their container.
Demo & Download


SuperBox is a jQuery plugin that takes the whole ‘image’ and ‘lightbox’ one step further, reducing the JavaScript and image load dependence to make lightboxing a thing of the past! Using HTML5 data- * attributes, responsive layouts and jQuery.

SuperBox works wonders as a static image gallery, which you can click to reveal a full version of the image.
Demo & Download


The Ultimate Thumbnail gallery is fully responsive image gallery plugin comes in two layout types (grid and line, vertical and horizontal), with scroll (jScrollPane) or button navigation. Thumbnail boxes support any HTML element inside them.

Hello dear readers a! In this tutorial, I will show you how to create a minimalistic, but at the same time comfortable and functional photo gallery on jQuery, or a gallery of images, as it is convenient for anyone. The gallery has the ability to create categories, followed by filtering. It is also possible to launch a slideshow. The gallery works in all browsers, so there will be no problems with adaptation.

Two free libraries will be used to create this gallery: Quicksandand PrettyPhoto... They make it much easier to create a gallery. As always, you can see the result of the work on the demo page, as well as download the archive from the working gallery and all the source files. The only drawback, if I may say so, is the manual creation of thumbnails for large images. Otherwise, this gallery worthy of attention. As well as !

HTML markup

First, let's take a look at the panel with a list of categories, this is a bulleted list ul. Moreover, each element of the list must have a unique class name.

1
2
3
4
5
6
7
8

<ul class \u003d "portfolio-categ filter"\u003e
<li\u003eCategories:</ li\u003e
<li class \u003d "all active"\u003e All</ a\u003e
<li class \u003d "cat-item-1"\u003e
Category 1</ a\u003e
<li class \u003d "cat-item-2"\u003e
Category 2</ a\u003e
<li class \u003d "cat-item-3"\u003e
Category 3</ a\u003e
<li class \u003d "cat-item-4"\u003e
Category 4</ a\u003e
</ ul\u003e

1
2
3
4
5
6
7
8
9
10
11


  • As stated above, list items are images in the gallery. Each element of the list includes composite ones. This is the image itself, or rather its thumbnail, as well as a description. The thumbnail is a link to the main image. The rel attribute is required to invoke javascript and open the main image.

    Don't forget also about 2 important things, the data-id attribute must be unique for the li list element. The data-type attribute contains the category class, the list of which I described above. It's all about the markup.

    CSS Styles

    I will not focus on styles, since we are using a ready-made library PrettyPhoto, which is responsible for increasing the image, and there is a lot of css code. However, it is worth noting that there are 5 options for the design of the enlarged image, although ideally only 3, since in two options only the rounding is removed.

    Therefore, I will show only CSS styles for thumbnails and a list of categories.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

    Portfolio-categ (margin-bottom: 30px;)
    .portfolio-categ li (
    display: inline;
    margin-right: 10px;
    }
    .image-block (
    display: block;
    position: relative;
    }
    .image-block img (
    border: 1px solid # d5d5d5;
    border-radius: 4px 4px 4px 4px;
    background: #FFFFFF;
    padding: 10px;
    }
    .image-block img: hover (
    border: 1px solid # A9CF54;
    box-shadow: 0 0 5px # A9CF54;
    }
    .portfolio-area li (
    float: left;
    margin: 0 12px 20px 0;
    overflow: hidden;
    width: 245px;
    padding: 5px;
    }
    .home-portfolio-text (margin-top: 10px;)
    li.active a (text-decoration: underline;)

    In principle, everything should be clear with styles. To make the categories line up, the display property is set to inline. In order to give the effect of a stroke to the image, set the background color (white) and an indent of 10 pixels. The sizes of the list items are set in .portfolio-area li.

    jQuery

    And finally, the most important thing, for what the whole lesson is. This is jQuery code. Let's start by filtering images by category.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23

    // Select all children of portfolio-area and write to variable
    var $ data \u003d $ (". portfolio-area") .clone ();

    $ (". portfolio-categ li") .click (function (e) (
    $ (". filter li") .removeClass ("active");

    var filterClass \u003d $ (this) .attr ("class") .split ("") .slice (- 1) [0];

    if (filterClass \u003d\u003d "all") (
    var $ filteredData \u003d $ data.find (".portfolio-item2");
    ) else (
    var $ filteredData \u003d $ data.find (".portfolio-item2");
    }
    $ (". portfolio-area") .quicksand ($ filteredData, (
    duration: 600,
    adjustHeight: "auto"
    ), function () (

    LightboxPhoto ();
    } ) ;
    $ (this) .addClass ("active");
    return false;
    } ) ;

    Using the clone () method and the selector, we select all the children of the .portfolio-area and write them to the $ data variable. Next, we track the click on one of the categories, the li element in the list with the .portfolio-categ class. We make all categories inactive by removing removeClass ("active"), if this is not done then over time all categories will be active and filtering will stop.

    Since we click on the list element, the selector this contains the list element, that is, li, we take the value of the class attribute from it and use the split method to split the class name into several parts, the border is a space (that is, if the class was " all active "then after splitting we get an array of" all "and" active "). And then, using the slice method, we select the first element of the array (in our case, "all"), and write the resulting result into the filterClass variable. If there was no space then the class name will not change.

    Next, we check if the filterClass variable contains the string all, then using the .find method, we select all items with the class portfolio-item2 from the $ data array that we discussed above. The selected elements (and these are all the elements of the list, that is, all the pictures) are placed in the filteredData variable.

    Otherwise, if filterClass is not equal all, then in the variable filterData we will place not all elements of the list, but only those whose data-type attribute matches the category class. In short, items are only of one category.

    And in the end, we transfer the resulting variable to the library jquery quicksand, which filters images. This is all about filtering.

    Now for the enlargement of the image in the popup. Everything is much simpler here.

    1
    2
    3
    4
    5
    6
    7

    jQuery ("a") .prettyPhoto ((
    animationSpeed: "fast",
    slideshow: 5000,
    theme: "facebook",
    show_title: false,
    overlay_gallery: false
    } ) ;

    A click is tracked on a link whose rel attribute begins with prettyPhoto. Then the library comes into play prettyPhotoand the image is miraculously enlarged. By the way, we also pass in a few parameters. Such as animation speed - fast, slide show delay - 5 seconds, Facebook theme (there are 5 themes in total in the images / prettyPhoto folder), as well as prohibit displaying the image name and zooming in on the mouse hover. Complete documentation for prettyPhoto can be found

    To stay updated with the latest articles and lessons, subscribe to

    In this tutorial, I will show you how to create a minimalistic, but at the same time comfortable and functional photo gallery on jQuery, or a gallery of images, as it is convenient for anyone. The gallery has the ability to create categories, followed by filtering. It is also possible to launch a slideshow. The gallery works in all browsers, so there will be no problems with adaptation.

    Two free libraries will be used to create this gallery JQuery: Quicksandand PrettyPhoto... They make it much easier to create a gallery. As always, you can see the result of the work on the demo page, as well as download the archive from the working gallery and all the source files. The only drawback, if I may say so, is the manual creation of thumbnails for large images. Otherwise, this gallery worthy of attention.

    SOURCES

    HTML markup

    First, let's take a look at the panel with a list of categories, this is a bulleted list ul. Moreover, each element of the list must have a unique class name.


    • Categories:

    • All

    • Category 1

    • Category 2

    • Category 3

    • Category 4







  • Image name




  • As stated above, list items are images in the gallery. Each element of the list includes composite ones. This is the image itself, or rather its thumbnail, as well as a description. The thumbnail is a link to the main image. The rel attribute is required to invoke javascript and open the main image.

    Don't forget also about 2 important things, the data-id attribute must be unique for the li list element. The data-type attribute contains the category class, the list of which I described above. It's all about the markup.

    CSS Styles

    I will not focus on styles, since we are using a ready-made library PrettyPhoto, which is responsible for increasing the image, and there is a lot of css code. However, it is worth noting that there are 5 options for the design of the enlarged image, although ideally only 3, since in two options only the rounding is removed.

    Therefore, I will show only CSS styles for thumbnails and a list of categories.

    Portfolio-categ (margin-bottom: 30px;)
    .portfolio-categ li (
    display: inline;
    margin-right: 10px;
    }
    .image-block (
    display: block;
    position: relative;
    }
    .image-block img (
    border: 1px solid # d5d5d5;
    border-radius: 4px 4px 4px 4px;
    background: #FFFFFF;
    padding: 10px;
    }
    .image-block img: hover (
    border: 1px solid # A9CF54;
    box-shadow: 0 0 5px # A9CF54;
    }
    .portfolio-area li (
    float: left;
    margin: 0 12px 20px 0;
    overflow: hidden;
    width: 245px;
    padding: 5px;
    }
    .home-portfolio-text (margin-top: 10px;)
    li.active a (text-decoration: underline;)

    In principle, everything should be clear with styles. To make the categories line up, the display property is set to inline. In order to give the effect of a stroke to the image, set the background color (white) and an indent of 10 pixels. The sizes of the list items are set in .portfolio-area li.

    jQuery

    And finally, the most important thing, for what the whole lesson is. This is jQuery code. Let's start by filtering images by category.

    // Select all children of portfolio-area and write to variable
    var $ data \u003d $ (". portfolio-area"). clone ();

    $ (". portfolio-categ li"). click (function (e) (
    $ (". filter li"). removeClass ("active");

    Var filterClass \u003d $ (this) .attr ("class"). Split ("") .slice (-1);

    If (filterClass \u003d\u003d "all") (
    var $ filteredData \u003d $ data.find (". portfolio-item2");
    ) else (
    var $ filteredData \u003d $ data.find (". portfolio-item2");
    }
    $ (". portfolio-area"). quicksand ($ filteredData, (
    duration: 600,
    adjustHeight: "auto"
    ), function () (

    LightboxPhoto ();
    });
    $ (this) .addClass ("active");
    return false;
    });

    Using the clone () method and the selector, we select all the children of the .portfolio-area and write them to the $ data variable. Next, we track the click on one of the categories, the li element in the list with the .portfolio-categ class. We make all categories inactive by removing removeClass ("active"), if this is not done then over time all categories will be active and filtering will stop.

    Since we click on the list element, the selector this contains the list element, that is, li, we take the value of the class attribute from it and use the split method to split the class name into several parts, the border is a space (that is, if the class was " all active "then after splitting we get an array of" all "and" active "). And then, using the slice method, we select the first element of the array (in our case, "all"), and write the resulting result into the filterClass variable. If there was no space then the class name will not change.

    Next, we check if the filterClass variable contains the string all, then using the .find method, we select all items with the class portfolio-item2 from the $ data array that we discussed above. The selected elements (and these are all the elements of the list, that is, all the pictures) are placed in the filteredData variable.

    Otherwise, if filterClass is not equal all, then in the variable filterData we will place not all elements of the list, but only those whose data-type attribute matches the category class. In short, items are only of one category.

    And in the end, we transfer the resulting variable to the library jquery quicksand, which filters images. This is all about filtering.

    Now for the enlargement of the image in the popup. Everything is much simpler here.

    JQuery ("a"). PrettyPhoto ((
    animationSpeed: "fast",
    slideshow: 5000,
    theme: "facebook",
    show_title: false,
    overlay_gallery: false
    });

    A click is tracked on a link whose rel attribute begins with prettyPhoto. Then the library comes into play prettyPhotoand the image is miraculously enlarged. By the way, we also pass in a few parameters. Such as animation speed - fast, slide show delay - 5 seconds, Facebook theme (there are 5 themes in total in the images / prettyPhoto folder), as well as prohibit displaying the image name and zooming in on the mouse hover.

    Today we'll take a look at the jQuery plugin Flipping Gallery, which allows you to create cool image galleries with very original transitions. In the example, there are 5 types of transitions using this plugin. The plugin is really very easy to use, so anyone can fully work with it.

    An example can be seen here:

    Download

    We'll take a closer look at how to create a menu from Demo 2 when the menu appears at the top left.

    HTML part

    First, you need to connect the jQuery library, which you can download and the Flipping Gallery plugin, between the tags :

    1 2 3 4 5 6 <head\u003e ... <"http://code.jquery.com/jquery-1.9.1.js"> <script type \u003d "text / javascript" src \u003d "http://code.jquery.com/jquery.flipping_gallery.js"> ... </ head\u003e

    Then we place the images. You can add as many images as you like:

    1 2 3 4 5 6 7 8 <div class \u003d "gallery"\u003e <a href \u003d "#"\u003e <a href \u003d "#"\u003e <a href \u003d "#"\u003e <a href \u003d "#"\u003e <a href \u003d "#"\u003e ... </ div\u003e

    And to add a description for images (as in demo 4 and 5), you need to use the attribute data-caption:

    1 2 3 4 5 6 7 8 <div class \u003d "gallery"\u003e <a href \u003d "#" data-caption \u003d "Very"\u003e <a href \u003d "#" data-caption \u003d "cool"\u003e <a href \u003d "#" data-caption \u003d "gallery"\u003e <a href \u003d "#" data-caption \u003d "with"\u003e <a href \u003d "#" data-caption \u003d "Flipping"\u003e ... </ div\u003e

    JS part

    1 2 3 4 5 6 7 8 9 $ (". gallery") .flipping_gallery ((direction: "forward", selector: "\u003e a", spacing: 10, showMaximum: 15, enableScroll: true, flipDirection: "bottom", autoplay: 500));

    Let's see what each method means:

    • direction - the method responsible for how the images will appear. If "forward", then the image from the beginning will be placed to the end, if "backward" - vice versa. The default is "forward".
    • selector - the selector by which we select images, it can be changed at will.
    • spacing - sets the space between images in perspective.
    • showMaximum - sets the number of images that are visible to the user. You can use at least 100 images, but only the first 15 will be shown, which is very convenient and does not load the browser.
    • enableScroll - you can view images using the mouse wheel.
    • flipDirection - determines where the image will slide: "left" - to the left, "right" - to the right, "top" - up and "bottom" - down. By default, it slides down.
    • autoplay - gallery autostart. It is set in milliseconds, i.e. after how many images will change.

    Output

    Now you have a great gallery to use when posting your photos.

    Image galleries and sliders are some of the most popular jQuery formats. Thanks to them, you can add the necessary amount of visual content to the site, while saving valuable space.

    Galleries and sliders make the page less busy, but still allow you to add all the images needed to convey the message. They will be especially useful for online stores.

    In today's article, we've rounded up the best jQuery image galleries and sliders for you.

    To install them, just add the selected plugins to the head section of the HTML page along with the jQuery library and configure them according to the documentation (just a couple of lines of code).

    Choose which of these elements will fit perfectly into your project.

    1. Bootstrap Slider

    Bootstrap Slider is a free, mobile-optimized image slider with touch and swipe scrolling. It will look amazing on any screen and in any browser. You can load images, videos, text, thumbnails and buttons into sliders.

    2. Product Preview Slider

    The Product Preview Slider embodies the full potential of jQuery and fits perfectly into any interface. You will also be pleased with the quality and cleanliness of the code of this plugin.

    3. Expandable Image Gallery

    Expandable Image Gallery is an awesome plugin that turns into a full-screen gallery with just one click. It can be used for the About Us section or to view product information.

    4. Fotorama

    Fotorama is a jQuery responsive gallery plugin that works for both desktop and mobile browsers. It offers many navigation options: thumbnails, scrolling, forward and back buttons, automatic slideshows and markers.

    5. Immersive Slider

    Immersive Slider allows you to create a unique slideshow experience similar to the Google TV slider. You can change the background image to be blurred to maintain focus in the main photo.

    6. Leastjs

    Leastjs is a responsive jQuery plugin to help you create an awesome gallery. When you hover over the image, text appears, when clicked, the window expands to full screen.

    7. Sliding Panels Template

    This plugin is perfect for a portfolio. It will create blocks of images, arranged horizontally (vertically on small screens), to which the selected content will be anchored.

    8. Squeezebox Portfolio Template

    Squeezebox Portfolio Template offers motion effects for portfolios. When you hover over the main image (or block), anchored elements appear.

    9. Shuffle Images

    Shuffle Images is an awesome responsive plugin that lets you create a gallery of images that change on hover.

    10. Free jQuery Lightbox Plugin

    Free jQuery Lightbox Plugin helps you to show one or more images on one page. They can also be enlarged and returned to their original size.

    11. PgwSlider - Responsive slider for jQuery

    PgwSlider is a minimalistic image slider. jQuery code is lightweight, so the loading speed of this plugin will pleasantly surprise you.

    12. Scattered Polaroids Gallery

    Scattered Polaroids Gallery is an awesome flat design slider. Its elements move erratically when switching images, which looks amazing.

    13. Bouncy Content Filter

    Bouncy Content Filter is the perfect solution for and portfolio. This plugin allows users to quickly jump from one category to another.

    14. Simple jQuery Slider

    Simple jQuery Slider lives up to its name. This plugin combines JavaScript, HTML5 and CSS3 elements. In the demo, by default, only text loading is available, but if you make a few changes, you can add visual content as well.

    15. Glide JS

    Glide JS is a simple, fast and responsive jQuery slider. It's easy to set up and doesn't take up much space.

    16. Fullscreen drag-slider with parallax

    This awesome jQuery slider with the ability to load images and text will work for any website. It will delight users with a light parallax effect and slow text appearance.