Answer the question
In order to leave comments, you need to log in
Resizing slick?
There is a slider Slick in it only the img tag, all images are different in height, I would like to change the size of the slider depending on the image in it. I use adaptiveHeight
it, but for some reason it builds the height along the first slide and everything else is cut if there is more image further. I removed this parameter, wrote my own small crutch, it seems to me that when swiping, the height of the container would change depending on the size of the image, but now the problem is how can I change the size of the first slide because the image is smaller than the slider and therefore a lot of empty space below
How to be?
ps I tried to get its height when loading an image and assign it to the slider, but the image does not always load quickly and the height is 0.
Answer the question
In order to leave comments, you need to log in
You can force all images to be the same height
https://jboullion.com/force-height-slick-slides/
but the image does not always load quicklyYou can subscribe to the load event for the image.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question