Open pjatx opened 6 years ago
I had the same problem. Images causes issue: set initial width or min-width to img.
I think it div of the slide
I fixed this issue by adding:
setTimeout(() => { $('.your-slick-carousel).slick('refresh); }, 2000);
The reason why the slick-track has width 0 because the slick-carousel still initialize the resource like css and js in order to load the features of the slick-carousel.
If you have same problem to open modal, in your fuction add : $('your-slick-carousel').slick('refresh');
I'm running into a really weird issue with a Slick Slider. Usually, on the very first page load the slide and track width are being set to 0.
I've tried many of the solutions out there including:
I can't for the life of me figure out how to fix this issue. Any help would be greatly appreciated!
Live example (any product page)
Steps to reproduce
Expected
Slider appears
Actual
Slider and images are invisible
If you then refresh your browser it works fine. I'm stumped! Any help would help me stay within the realm of sanity and would be greatly appreciated.
jQuery
HTML (bootstrap 4)
SASS