🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A responsive, flexible, dynamic, justified photo gallery/grid plugin that mages will open in a lightbox popup with the ability to navigate between images by clicking the left/right arrows.

photo-gallery gallery-lightbox

Documentation

jQuery Flex Photo Gallery

Flex Photo Gallery is a jQuery plugin which makes use of CSS3 Flexbox to create a responsive, justified grid layout and gallery for showing your images. It also provides the popup modal for viewing the selected image with the navigation buttons.

!png

How to use it:

1. Download the jquery.flex-photo-gallery plugin files.  2. Import the jQuery Flex Photo Gallery plugin and other required resources into your html document. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.flex-photo-gallery.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.flex-photo-gallery.css"/>  3. Define the array objects containing images to be presented in the gallery. var images = [ 	{ 		"url" : "path_to_image", 		"width" : image_width, 		"height" : image_height 	}, 	{ 		"url" : "path_to_image", 		"width" : image_width, 		"height" : image_height 	}, 	........ ];  4. Create a container in which you want to display the image gallery. <div id="gallery"></div>  5. Activate the plugin and done. $('#gallery').flexPhotoGallery({ 	imageArray: images, 	isViewImageOnClick: true });  Set isViewImageOnClick = false if you don't wan't to enlarge the image on click event. Default value is true.

You May Also Like