Belgelerimiz

$(document).ready(function() { $('.popup-gallery').magnificPopup({ delegate: 'a.popup-image', type: 'image', tLoading: 'Loading image #%curr%...', mainClass: 'mfp-with-zoom', removalDelay: 200, gallery: { enabled: true, navigateByImgClick: true, preload: [0,1] // Will preload 0 - before current, and 1 after the current image }, image: { tError: 'The image #%curr% could not be loaded.', titleSrc: function(item) { return item.el.attr('title'); } } }); });