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

234
Views
Swiper JS Do not slide on transition start

I'm using swiper.js library and want to change the behaviour on a slider. The default effect is "slide", which means an image slides from right to left. However, I would like to disable this behaviour in a callback function I wrote after the initialization of my slider. Is there any way I can approach this so that the inactive slide fades out and the active on slides in?

let swiper = new Swiper(element, settings);

        swiper.on('slideChangeTransitionStart', () => {
          $('.swiper-slide').each(function () {
            if ($(this).index() === swiper.activeIndex) {
              // Slide in active slide, enable slide behaviour
              console.log('slide in');
            } else {
              // Fadeout inactive slide, enable fade effect
              console.log('fade out');
            }
          });
        })
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!