F
F
freeman02042018-04-24 15:32:58
Layout
freeman0204, 2018-04-24 15:32:58

How to make on slick in one slide a photo on the left and two on the right?

Initially, such a structure. And if you change the nesting, it stops working. How to build such a structure?

<div class="your-class">
  <div>your content</div>
  <div>your content</div>
  <div>your content</div>
</div>

Also, I included only 3 slides and that would also scroll 3. But as soon as you change the structure of the divs inside, everything stops working.
slidesToShow: 3,
  slidesToScroll: 3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-25
@freeman0204

Why change nesting? The div with the class 'your-class' is the slider wrapper, and all the divs nested in it are your slides, which you fill with content as you wish. Here's an option, these will be your slides. Make whatever format you need.

<div class="slider-item">
  <div class="column">
    <img src="" alt="">
  </div>
  <div class="column">
   <img src="" alt="">
   <img src="" alt="">
  </div>
</div>

.slider-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 400px;
}
img {
  display: block;
  width: 100%;
  height: 100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question