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>
    </div>



    there is already a background either specifically in size, or

    .slide{
    background-size:cover;
    background-repeat:no-repeat;
    background-position:center top;
    }
    Anonymous

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