A
A
alex_mirg2018-12-24 17:58:55
css
alex_mirg, 2018-12-24 17:58:55

How to implement a slider with two rows and a preview?

Good afternoon,
Can you please tell me how to implement such a slider?
Preferably on slick, since I already use slick in the project.

Preview is not a problem to implement, difficulties begin when adding the second row.
I tried to do it on slick, but the slider scrolls two slides per click.

Monosn1.jpg

Here is the code
1 row works: https://codepen.io/alex-rogochiy/pen/vvmwxv
2 rows does not work: https://codepen.io/alex-rogochiy/pen/REVmKv

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2018-12-24
@alex_mirg

5c20f54e558e3044251378.png
here is the slider (slick 2x2)
And the picture on the right is a separate preview.
we change the preview by clicking on the slide and by the slide change event.
the arrows are taken out with a separate code and connected to the slick.
Well, troubles with two sliders are superfluous. We just change the picture and that's it. well, the maximum can be confused with the fade-animation in the picture (smoothly hide, delete, create a new one, smoothly show.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question