Responsive Photo/Image Gallery in Pure JavaScript | Cube Gallery

Cube Gallery is a JavaScript library that displays a responsive, tuned gallery of images of various sizes. Inspired by Flickr Gallery and Google Image Search.

How to make use of it:

1. Add a bunch of photos to the gallery container.

<div id="gallery" class="gallery">
  // Add Images Here
  ...
</div>

2. Load the Cube Gallery’s JavaScript on the finish of the doc.

<script src="dist/cube-gallery.min.js"></script>

3. Initialize the Cube Gallery on the highest container and carried out.

new CubeGallery('gallery')

4. Specify the minimal top of the photographs within the gallery.

new CubeGallery('gallery',{
    minHeight: 150
})

5. Specify the area between photos.

new CubeGallery('gallery',{
    margin: 5
})

Responsive Justified Photo Gallery, Cube Gallery Plugin/Github, responsive photo gallery, lightgallery js

Cube-Gallery-Demo


See Demo And Download

Official Website(TyomaMtl): Click Here

This superior jQuery/javascript plugin is developed by TyomaMtl. For extra Advanced Usage, please go to the official website.

Share