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

114
Views
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
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!