Answer the question
In order to leave comments, you need to log in
Why is Swiper Slider not initialized if parent block is in display:none state?
How to initialize slider
which is the default display: none
?
There are three sliders and 2 of them are hidden, initialization takes place at one moment, but because 2 sliders display: none
, then only one works
As a result, when we switch the block selection in the panel and do another display:flex
, then they are not initialized.
If you set the default sliders display: flex
, then they are all 3 initialized
Answer the question
In order to leave comments, you need to log in
because when display: none
the block (and, accordingly, all its contents) is, as it were, not in the DOM?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question