K
K
Konstantin2016-12-02 14:12:06
JavaScript
Konstantin, 2016-12-02 14:12:06

What is involved in initializing slick only after scrolling??

Tell me please, what could be the problem?
The site has installed (and, in principle, until today it was fully functional) slick to view products in a drop-down window. But now, when opening it, it is not initially visible and in the inspector you can see that all the elements are in a column. (instead of a string). But just barely drag the part of the page (where they are located) to the side and the slider immediately starts working, elements appear, a line is formed and work resumes. On an example to show unfortunately I will not be able

Why initialization transits only actions of the user? tell me at least where to dig? in third party scripts or in the slider script itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ildar Gizetdinov, 2016-12-02
@VinnieBrigston

Two options:
1. The modal window is not initially on the page
Solution: initialization on opening
2. The modal window opens but setPosition is not called
Solution $('.your-element').slick('setPosition');
Reason: The slider initially does not know either the width or the height because the modal is hidden

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question