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

115
Visualizações
Layout Shift in my Carousel while page is loading

Good night everyone..

I'm in trouble trying to solve a issue for somedays..

I have a flickity carousel with the following structure:

<div class="container">
    <div class="carousel">
        <div class="item">
        </div>
    </div>
</div>

The problem is that my carousel is getting big layout shift when page is loading, as you can see on the image: enter image description here

This is because i have not a fixed height for the carousel div.

I know i can set the carousel height and adding overflow: hidden, this fix the problem, however, i need the height to be adaptive and not a fixed height because my layout is responsive, so the height of the cells change...

The weird thing is that flickity carousel already have overflow hidden, that works on the page loads full, but while its loading, the bug happens..

Could someone help me please? thanks!

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