M
M
myskypesla2018-07-25 23:21:14
css
myskypesla, 2018-07-25 23:21:14

Why does the slider break on page load?

Tell me why the Slick.js or Owl Carousel sliders are first broken when the page is loaded, and only then is it formed.
I don't think I'm the only one experiencing this.
Are there any solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2018-07-25
@myskypesla

This is because the slider markup (pictures, blocks) is loaded first, and then the slider styles and scripts (which make it a slider).
You can try to hide the block with the slider, and after calling the slider plugin, show it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question