html – How to make swiper transition work in both directions?

var swiper = new Swiper( ‘.swiper-container’, { navigation: { nextEl: ‘.swiper-button-next.hero-slider-btn’, prevEl: ‘.swiper-button-prev.hero-slider-btn’, }, pagination: { el: ‘.hero-slider-pagination’, type: ‘bullets’, clickable: true, }, effect: ‘creative’, creativeEffect: { prev: { scale: 1, }, next: { scale: 1, }, }, loop: false, centeredSlides: false, slidesPerView: 1, autoplay: false, on: { activeIndexChange: function () { setTimeout(function() { $(‘.hero-slide__media.active-media’).removeClass(‘active-media’); … Read more