I am currently facing an issue with my website's tabs and carousels. I have 4 tabs, each containing a carousel, but only the carousel in the first tab seems to be working properly. When I activate the second tab, all the carousel divs collapse.
For reference, you can see an example of this issue on this site that uses Bootstrap 3 tabs and the 'slick' plugin for carousels:
I have tried multiple tabbing scripts, but the problem persists regardless of what I use. Interestingly, if you try to move the carousel in the second tab a bit, it somehow activates and starts working.
I suspect that this may be a plugin initialization problem. Here is how I am currently initializing the carousel:
$('.carousel').slick({
slidesToShow: 3,
slidesToScroll: 1,
dots: false,
arrows: true
});
If anyone has any solutions or ideas on how to troubleshoot and fix this issue, I would greatly appreciate your input. I have attempted to tweak the CSS, but so far, I have not been successful in resolving the problem.