Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
JavaScript: problem with swiper-button-prev

I have a problem with arrows on the slider on the website that I've published a few days ago. A link to a website is https://blackfox.ai/. The problem is that the left arrow (swiper-button-prev) does the same thing as the right arrow (swiper-button-next). In other words, when I click on the left arrow, I want the previous slide to come from left to right, not from right to left. Is there anybody who had a similar problem and can help me?

HTML code for these arrows is:

<div
  class="swiper-button-prev"
  style="margin-left: auto; margin-right: auto;width: 85%;"
  tabindex="0"
  role="button"
  aria-label="Previous slide"></div>
<div
  class="swiper-button-next"
  style="margin-left: auto; margin-right: auto; width: 85%;"
  tabindex="0"
  role="button"
  aria-label="Next slide"></div>

JavaScript code for the slider itself is:

// Testimonial Slider Three
var testimonialSlider = new Swiper('.testimonial-slider-three', {
  slidesPerView: 1,
  slidesPerGroup: 1,
  loop: true,
  /*autoplay: true,*/
  autoplay: {
    delay: 6000,
    disableOnInteraction: false,
  },
  speed: 1000,
  autoHeight: true,
  spaceBetween: 30,
  navigation: {
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
  },
  pagination: {
    el: '.swiper-pagination-t0',
    type: 'bullets',
    clickable: true
  },
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!