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

305
Visualizações
Swiperjs coverflow weird display issue (sometimes)

First, i am using Swiper, effect "coverflow" and this is my config:

const testSwiper = new Swiper('.test-swiper', {
    effect: "coverflow",
    grabCursor: true,
    centeredSlides: true,
    spaceBetween: 30,
    centeredSlides: true,
    slidesPerView: "auto",
    coverflowEffect: {
      rotate: 50,
      stretch: 0,
      depth: 100,
      modifier: 1,
      slideShadows: true,
    },
    direction: 'horizontal',
    loop: true,
    lazy: true,
    mousewheel: false,
    freeMode: false,
    keyboard: {
      enabled: false,
    },
    // Pagination
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
      dynamicBullets: true,
    },
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    scrollbar: {
      el: '.swiper-scrollbar',
      hide: true,
    },
  });

The issue is that sometimes when you load the page you will see something like this.

The only way that you can make this odd layout disappear is to resize the screen and you will see this.

And I really have no clue on why and I have no idea how to debug on this issue, so I am hoping someone out there can give me some advice on how to debug or maybe any idea on this issue.

Thanks in advance.

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