Skip to content

iekadou/jquery-justifyGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-justifyGallery

A jQuery plugin to justify your Gallery.

Demo

Installation

  • Download the latest release: v0.0.4

Usage

  1. include jquery.justifyGallery.js

js:

<script type="text/javascript" src="js/jquery.justifyGallery.js></script>
  1. code your gallery with markup like this
<div class="gallery">
  <a href="/path/to/img1.jpg">
    <img src="/path/to/thumb1.jpg" alt="thumb1">
  </a>
  <a href="/path/to/img2.jpg">
    <img src="/path/to/thumb2.jpg" alt="thumb1">
  </a>
</div>
  1. activate the plugin on the gallery container
$('.gallery').justifyGallery();

Settings

default values

JustifyGallery.defaults = {
'maxRowHeight': '300px',
'spacing': 2,
'resizeCSS': {'min-width': '0',
              'min-height': '0',
              'height': 'auto',
              'width': 'auto',
              'max-width': 'none',
              'max-height': 'none'}
};

Copyright and license

Copyright 2014 Jonas Braun under MIT license.

About

A jQuery plugin to justify your Gallery.

Resources

License

Stars

Watchers

Forks

Packages

No packages published