forked from github.com/GenderDysphoria.fyi
Initial site commit
This commit is contained in:
26
js/_lightbox.js
Normal file
26
js/_lightbox.js
Normal file
@@ -0,0 +1,26 @@
|
||||
(function ($) {
|
||||
|
||||
$('.lightbox, .gutter').each(function () {
|
||||
$(this).magnificPopup({
|
||||
delegate: 'a.lb',
|
||||
type: 'image',
|
||||
closeOnContentClick: false,
|
||||
closeBtnInside: false,
|
||||
mainClass: 'mfp-with-zoom mfp-img-mobile',
|
||||
image: {
|
||||
verticalFit: true,
|
||||
},
|
||||
gallery: {
|
||||
enabled: true,
|
||||
},
|
||||
zoom: {
|
||||
enabled: true,
|
||||
duration: 300, // don't foget to change the duration also in CSS
|
||||
opener: function (element) {
|
||||
return element.find('img');
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
}(window.jQuery));
|
||||
Reference in New Issue
Block a user