D
D
Dymok2018-12-07 13:13:41
css
Dymok, 2018-12-07 13:13:41

How to animate opacity change on slick slider side elements?

I'm trying to make a slider of three images, and the two outer ones should be more transparent than the central slide.
Everything worked out, however, with every third scrolling (with three images in the slider), the animation does not play. Apparently, due to the fact that a new circle begins.
Is there a way to correct this misunderstanding?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-07-24
@UnluckySerivelha

Instead .slick-currentof styling .slick-center.
https://jsfiddle.net/g2z7931f/

A
Alexey, 2018-12-07
@skazi_premiere

I think that at first the transition is hung on the parent from the slider, and only then yours works, that's all the trouble.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question