G
G
greenfox072018-11-10 18:46:17
JavaScript
greenfox07, 2018-11-10 18:46:17

Why are images not loaded in the slider (slick) after opening the block?

Such a problem: I hid part of the block, when you click on the button, this block is displayed, but the problem is that the slider images are not loaded, but the slider itself works.
It looks like this
5be6fc6deb095151855412.jpeg
. But if you change the width in the developer tools in the (slick-track) class, then the slider starts showing images, and gradually starts to work better.
Button script to open block

$('#hidden-block-btn').on('click', function() {
  $('.hidden-block').addClass('active');
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Khristoev, 2018-11-10
@Haoss

https://newwebmaster.ru/blog/slick-in-bootstrap-ta...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question