if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".recipient-tes", { loop: true, slidesPerView: 5, spaceBetween: 4, navigation: { clickable: true, nextEl: ".button-lo-next", prevEl: ".button-lo-prev", }, pagination: { el: ".swiper-pagination", clickable: true, }, // autoplay: { // delay: 3000, // }, }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".banner-tes", { speed: 1000, parallax: true, autoplay: { delay: 5000, }, slidesPerView: 1.2, spaceBetween: 16, loop: true, navigation: { clickable: true, nextEl: ".button-lo-next", prevEl: ".button-lo-prev", }, pagination: { el: ".swiper-pagination", clickable: true, }, breakpoints: { 1024: { slidesPerView: 4, }, 768: { slidesPerView: 3, }, 500: { slidesPerView: 2, }, }, // Optional: Customize lazy loading behavior lazy: { // Set to true to enable lazy loading for images enabled: true, // Preload images in advance preloadImages: true, // Load images in the "previous" and "next" slides loadPrevNext: true, // Number of slides to preload images for loadPrevNextAmount: 1, // Set to true to load images only when swiper is visible loadOnTransitionStart: true, } }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".brand-tes", { loop: true, slidesPerView: 4, spaceBetween: 8, }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".tes-gift", { loop: true, slidesPerView: 2.2, spaceBetween: 16, speed: 1000, breakpoints: { 1024: { slidesPerView: 5, }, 768: { slidesPerView: 4, }, 500: { slidesPerView: 3, }, }, }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".tes-food", { slidesPerView: 2, spaceBetween: 16, speed: 1000, loop: true, breakpoints: { 1024: { slidesPerView: 5, }, 768: { slidesPerView: 4, }, 500: { slidesPerView: 2.2, }, }, }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".tes-noti", { loop:false, slidesPerView: "auto", spaceBetween: 8, speed: 1000, }); } if ($("div").hasClass("swiper-container")) { var swiper = new Swiper(".tes-gift-2", { loop: true, slidesPerView: 1.5, spaceBetween: 16.5, pagination: { el: ".swiper-pagination", clickable: true, }, breakpoints: { 1024: { slidesPerView: 4.2, }, 768: { slidesPerView: 3.2, }, 500: { slidesPerView: 2.2, }, }, }); }