Skip to content

Instantly share code, notes, and snippets.

@jsieber
Created October 4, 2015 04:40
Show Gist options
  • Save jsieber/16b6ee5a65ae68f79fa4 to your computer and use it in GitHub Desktop.
Save jsieber/16b6ee5a65ae68f79fa4 to your computer and use it in GitHub Desktop.
Light Gallery Example
$(document).ready(function() {
$("#lightGallery").justifiedGallery({
rowHeight : 150,
lastRow : 'nojustify',
margins : 10
}).on('jg.complete', function() {
$("#lightGallery").lightGallery({
startClass: '',
useLeft: true,
thumbnail: false,
animateThumb: false,
showThumbByDefault: false,
download: false,
hideControlOnEnd: true,
loop: false,
autoplayControls: false,
fullScreen: false,
zoom: false,
mobileSrc : true,
preload: 1,
mobileSrcMaxWidth: 640,
thumbWidth: 150
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment