var swiper3 = new Swiper("#main-navigation-swiper", { slidesPerView: 3, spaceBetween: 0, navigation: { nextEl: ".navigation-button-next", prevEl: ".navigation-button-prev", }, }); $("li a").hover( // The first handler is executed when the mouse enters the element function() { // Trigger a click event on the element $(this).trigger("click"); }, // The second handler is optional and is executed when the mouse leaves the element function() { // Do something else if needed } );