O
O
osimone2020-05-09 21:06:38
css
osimone, 2020-05-09 21:06:38

Is it possible to make a slick slider out of backgrounds?

Can you please tell me if it is possible to make a background image slider using slick slider?
Google does not help ( The documentation says that images should be placed in a div block. But what about background images? I 5eb6f114e7fb0478030184.png
want to make such a slider

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dubolom Unicellular, 2020-05-09
@osimone

Place a block in the div, set position: absolute;, and set the parent block position: relative;(relative is needed so that the pictures do not crawl out of the parent block)
stretch the div with the pictures to fill the screen width: 100%; height: 100%;
And that's it!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question