// Load theme Galleria.loadTheme('http://www.avari.com/property/assets/js/galleria/classic/galleria.classic.js'); // run galleria and add some options $('#galleria').galleria({ image_crop: true, // crop all images to fit thumb_crop: true, // crop all thumbnails to fit transition: 'fade', // crossfade photos transition_speed: 700, // slow down the crossfade height: 540, data_config: function(img) { // will extract and return image captions from the source: return { title: $(img).parent().next('strong').html(), description: $(img).parent().next('strong').next().html() }; }, extend: function() { this.bind(Galleria.IMAGE, function(e) { }); } });