var swiper = new Swiper(".mySwiper", { spaceBetween:0, slidesPerView: "auto", navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", } }); var navi_rel=0,eve_nav; $('.mySwiper .swiper-slide a').hover(function(){ eve_nav = $(this); $('.mySwiper .swiper-slide a').removeClass('active'); $('.navigation-deopdown').find('#'+navi_rel).hide(); $('.navigation-deopdown').find('#'+navi_rel).removeClass('z-inxed-top'); navi_rel = eve_nav.attr('rel'); $('.navigation-deopdown').find('#'+navi_rel).slideDown(); $('.navigation-deopdown').find('#'+navi_rel).addClass('z-inxed-top'); eve_nav.addClass('active'); },function(){ }); $('.navigation-main').hover(function(){ },function(){ $('.navigation-deopdown').find('#'+navi_rel).hide(); $('.navigation-deopdown').find('#'+navi_rel).removeClass('z-inxed-top'); $('.mySwiper .swiper-slide a').removeClass('active'); }); }); -->