Save
This commit is contained in:
20
wp-content/plugins/elementor-addon/assets/js/main.js
Normal file
20
wp-content/plugins/elementor-addon/assets/js/main.js
Normal file
@@ -0,0 +1,20 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
document.querySelectorAll('.apartament-gallery-swiper').forEach(function (el) {
|
||||
new Swiper(el, {
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 10,
|
||||
loop: true,
|
||||
zoom: false,
|
||||
navigation: {
|
||||
nextEl: el.parentElement.querySelector('.swiper-button-next'),
|
||||
prevEl: el.parentElement.querySelector('.swiper-button-prev'),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Fancybox.bind('[data-fancybox]', {
|
||||
animated: true,
|
||||
showClass: 'fancybox-fadeIn',
|
||||
hideClass: 'fancybox-fadeOut',
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user