How to make the background image change along with the main slider?

  • 0
    There is a simple slider with text information. How to make the background image change when changing a slide with text? How to implement this? I'm using slick-slider.

    Slider example
    jQuery Emily Sloan, Aug 10, 2020

  • 1 Answers
  • 0
    well, insert an image into each slide, you can use the background.

    <div class="slide" style="background-image(img/slide.jpg);">
    <div class="text">Тут текст</div>

    there is already a background either specifically in size, or

    background-position:center top;

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!