0

I'm using react-slick and I'd like to add some features to my slider. I need some help to disable the left arrow on the initial state of the slider, since the slider is infinite. Also, I'm displaying 3 elements and I want to add a gradient mask on the 3rd one (the one that is following the current slide - the current slider has class slick-active).

I'm thinking about using jQuery but since this is not a good practice, any feedback would be appreciated.

React-slick: https://react-slick.neostack.com

4

1 回答 1

0

如果您选择使用非无限的滑块,则在初始状态左箭头被禁用(类'slick-disabled')。要隐藏它,您可以使用 CSS。对于第二个,您可以使用 'afterChange' 道具(这是一个示例)。

于 2018-07-11T14:06:52.443 回答