$(function() { setTimeout(function() { AOS.init({ duration: 1200, disable: 'mobile', }) }, 500); function changeClass() { $(".list8Box .swiper-slide").removeClass("pr1 pr2 pr3 pr4 ne1 ne2 ne3 ne4"); $(".list8Box .swiper-slide-active").prev().addClass("pr1"); $(".list8Box .swiper-slide-active").next().addClass("ne1"); $(".list8Box .swiper-slide-active").prev().prev().addClass("pr2"); $(".list8Box .swiper-slide-active").next().next().addClass("ne2"); $(".list8Box .swiper-slide-active").prev().prev().prev().addClass("pr3"); $(".list8Box .swiper-slide-active").next().next().next().addClass("ne3"); $(".list8Box .swiper-slide-active").prev().prev().prev().prev().addClass("pr4"); $(".list8Box .swiper-slide-active").next().next().next().next().addClass("ne4") } var swiper7 = new Swiper('.list8Box', { watchSlidesProgress: true, speed: 800, spaceBetween: 38, slidesPerView: 7, centeredSlides: true, noSwiping: true, noSwipingClass: 'noSwi', loop: true, autoplay: { delay: 6000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: '.home4 .next', prevEl: '.home4 .prev', }, on: { init: function() { changeClass() }, transitionStart: function() { changeClass() }, } }); var swiper8 = new Swiper('.list9Box', { speed: 800, loop: true, autoplay: { delay: 6000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: '.swiper_page2', }, navigation: { nextEl: '.home4 .next', prevEl: '.home4 .prev', }, breakpoints: { 1025: { noSwiping: true, noSwipingClass: 'noSwi' }, }, on: { transitionStart: function() { $(".home4 .txts li").eq(this.realIndex).stop().fadeIn('on').siblings().stop().hide() }, } }); if ($(window).width() > 1024) { $('.list10 li').each(function(i, o) { $(this).css({ "transition-delay": (i * 200 + 200) + "ms", "-webkit-transition-delay": (i * 200 + 200) + "ms" }) }); $(window).resize(function() { $('.list10 li').each(function(i, o) { $(this).css({ "transition-delay": (i * 200 + 200) + "ms", "-webkit-transition-delay": (i * 200 + 200) + "ms" }) }) }) } }); $(window).on("load",function() { $('.rcga_imgs_odd .rcga_imgs_move').liMarquee({ direction: 'left', hoverstop: false, runshort: false }); $('.rcga_imgs_even .rcga_imgs_move').liMarquee({ direction: 'right', hoverstop: false, runshort: false }) });