Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
Swiper carousels moving together with new Swiper 8 Thumbs module

How we can build 2 carousels synched using the Thumbs module?

Notice thumbnails are moving as moving the main slider and the active thumbnail is always centered.

Before of Thumbs module we used Controller module but on Swiper 8 doesn't work as expected. Here is an example how worked before.

My actual code for init the sliders that is the one on the official demo but the sliders are not moving together

  let swiperThumbs = new Swiper(".mySwiper", {
    modules: [Thumbs, Controller],
    centeredSlides: true,
    slideToClickedSlide: true,
    loop: true,
    slidesPerView: 5,
  });

  let swiperSlider = new Swiper(".mySwiper2", {
    modules: [Thumbs, Navigation, Controller],
    centeredSlides: true,
    slidesPerView: 1,
    loopedSlides: 6,
    loop: true,
    navigation: {
      nextEl: ".mySwiper2 .swiper-button-next",
      prevEl: ".mySwiper2 .swiper-button-prev",
    },
    thumbs: {
      swiper: swiperThumbs,
    },
  });

Also tried these lines but don't work:

  swiperSlider.thumbs.swiper = swiperThumbs;
  swiperThumbs.thumbs.swiper = swiperSlider;
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda