Incorrect slide sizing on load, using two carousels
See original GitHub issueDescribe the problem I’m using two related carousels similar to https://codepen.io/lukaszflorczak/pen/yrQyBj
On load, the smaller/secondary carousel loads at a much larger size than expected, seemingly at the full container width instead of a width based on slide count.
I assume I’m missing a simple detail, but it is escaping me at present.
Code I attempted to get the gist of what I’m doing in my project here: https://codepen.io/justin-RB/pen/BaopNKW
I am not currently setting the height of the thumbnail slides, but upon adding the following, the problem persists.
.slide--thumbnail {
height: 100px;
}
Expected behavior Slides to load at the appropriate size.
Screenshots
Additional context Can confirm the same result in Chrome, Safari, Firefox (at least on MacOS 10.15)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Carousel Slider slides incorrectly when creating multiple ...
The issue seems to lie in the fCarousel function where profileCount is counting every item belonging to every carousel.
Read more >Incorrect slide width on initial load - WordPress.org
I have an issue with SA Slider when browser window is wider than boxed content max width. Please see console on linked page...
Read more >Problem with images resizing in carousel - HTML & CSS
I have tried to set them all to be the same size, but it doesn't seem to matter, they are still different sizes....
Read more >Best practices for carousels - web.dev
Performance best practices. Load carousel content using HTML; Avoid layout shifts; Use modern technology; Optimize carousel content ; Performance ...
Read more >Bootstrap Carousel Slide Motion Glitch(on the time of motion)
I am able to play carousel, My problem is in how carousel loads slides of different sizes Download following .txt file, change its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much for ☕️☕️☕️☕️☕️☕️ I really appreciate that 😊
Right. In this case, if you reload agile (by method or key) you have to update asNavFor refs. So I propose something like that – the key to refresh carousels and asNavFor update in watcher: https://codepen.io/lukaszflorczak/pen/WNQRrbb?editors=0011