S
S
Stepan0072022-03-26 17:37:46
PHP
Stepan007, 2022-03-26 17:37:46

Why is Swiper Slider not initialized if parent block is in display:none state?

How to initialize sliderwhich 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

2 answer(s)
O
Omich, 2016-07-12
@Gravio

You have a reserved word for SQL as the name for the column (show).

L
low molecular macro, 2022-03-26
@molekulyarniy

because when display: nonethe block (and, accordingly, all its contents) is, as it were, not in the DOM?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question