FatGallery.init('http://pazo-catoira.es/wp-admin/admin-ajax.php', '5a1711205eca2', 'light-gallery', 'lg-fade');

var $isotope = $container.isotope({ itemSelector: '.fat-gallery-item' }); $isotope.imagesLoaded().progress( function() { setTimeout(function(){ console.log('image loaded'); $isotope.isotope('layout'); },1000);

}); $container.css('opacity','1'); }) })(jQuery);