M
M
MegaPuxapb2018-10-02 20:33:35
JavaScript
MegaPuxapb, 2018-10-02 20:33:35

Slick slider how to select first and last slide?

You need to put slightly different gradients on the first and last slide (to top/to bot).
5bb3abc4bf3d1316680430.jpeg
How to find/select them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey_Hmytron, 2018-10-02
@MegaPuxapb

Through css I don't know how. Probably through js it is possible.
But in this situation, I would recommend adding before,after to .slick-list . One above, the other below absolute. Give them a gradient over the slides.
It's just that even if you make a gradient on a slide here, when you switch scrolling, this gradient will pull the slide along with it.

D
Dima Polos, 2018-10-02
@dimovich85

You can refer to the slides through first/last child and set other styles for them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question