M
M
Mark2018-09-24 08:30:28
JavaScript
Mark, 2018-09-24 08:30:28

How to solve slick.js reinitialization issue?

Slick.js has very strange behavior. When opening a popup, the normal view is:

normal view
j0uWPfG.png

This view will be the first time the popup is opened. If you open others, the following situation:
Problem
t4IYNYL.png

That is, images are not loaded, but slider arrows are displayed. If you click on them, the photo gradually opens:
Gradual disclosure
Seeaznd.pngwkCtw1p.pngdxMxzl5.png

I think the problem is in the initialization. Has anyone come across this and how can I solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2018-09-24
@iiiBird

When called again, call the setPosition method
$('.slider').slick('setPosition');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question