A
A
altkov2021-08-08 19:49:37
JavaScript
altkov, 2021-08-08 19:49:37

How to remove the shadow of the next slide in slick slider?

I use slick slider to animate the transition between tabs, but the slides are right next to each other, and the shadow from the image from the next slide falls on the other. OwlCarousel has a margin property to fix this error, is there something similar in slick? Margin in css slick is ignored.

61100a13c4c16119943327.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
altkov, 2021-10-14
@altkov

In many cases, Anton Litvinenko 's answer (comments) is the solution,
HOWEVER, such a solution is still a crutch. A negative margin increases the slick-list, thereby increasing the visibility area of ​​the slides, when scrolling the slides they will go beyond the block boundaries (unless of course there is overflow: hidden on the parent, but you can not always use it - a background that is larger than the slider itself, along with arrows just won't work).

Example

6167f5de6a62d025609982.jpeg

Solution: simple
Do not use slick-slider
(If you need sliders other than the most primitive. But you never know what awaits you in the future)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question