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

184
Views
If I have multiply swipers on page, on each swiper need to check how many slides swiper have. If have less than 3 remove pagination and bullets

I have same html code

(function ($) { 'use strict' Drupal.behaviors.sliderComponent2 = { attach: function (context, settings) {

    const sliderOptionsFirst = {
      slidesPerView: 'auto',
      spaceBetween: 16,
      breakpoints: {
        1025: {
          allowTouchMove: false,
          centeredSlides: true,
          spaceBetween: 32,
        }
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      pagination: {
        el: '.swiper-pagination',
        type: 'bullets',
      }
    };
    
    const swiperOne = new Swiper('.paragraph--slider-component .swiper', sliderOptionsFirst);

  }
};

}) (jQuery)

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!