on-internet
← Community

Swiper Slider swiper.activeIndex value not changing when clicked

Stack Overflow ·

I'm trying to animate the slide number of a slider, but it doesn't work as expected. The slide number on the bottom should change, but when I click it, nothing happens. How do I modify my code so that the values change when clicked? A JSfiddle of the code. HTML: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/css/swiper.min.css"> <!-- Section Testimonies --> <div class="section testimonial" id="testimonial"> <div class="swiper-container faded-text"> <div class="swiper-wrapper"> <div class="swiper-slide"> <p class="p-large"> Lorem ipsum dolor sit amet, consectet

Comments

Sign in or sign up to comment and upvote.

No comments yet.