3
3
33remido2021-01-15 20:46:00
Slick
33remido, 2021-01-15 20:46:00

Why doesn't slick.js work correctly?

Why doesn't the image load right away? Although if you add text as the first element, the slider works
6001d4b6f0a8f057816779.jpeg
6001d4bb8ac34369062007.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2021-01-15
@33remido

Because the window is initially hidden and the slick calculated the dimensions equal to 0, so that it is displayed normally in the modal, you need to update the slider position after calling the modal: $(".slider").slick('setPosition');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question