Answer the question
In order to leave comments, you need to log in
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).
How to find/select them?
Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question