Answer the question
In order to leave comments, you need to log in
How to set keyframes animation on slide change?
Hello, there is such css code Stylys
.slider-item
.slider-item__left
transform: translate3d(50px,0,0)
transition all .5s ease
opacity 0
transition-delay: 0.3s
&.slick-current
.slider-item__left
transform: translateX(0)
opacity 1
.slider-item__right
animation-name: bounce;
animation-duration: .5s;
animation-fill-mode: both;
@keyframes bounce
0%
opacity 0
transform: translateX(70px)
50%
opacity 0.5
transform: translateX(-30px)
100%
opacity 1
transform: translateX(0)
Answer the question
In order to leave comments, you need to log in
Everything worked fine) it was just too much, it was necessary to add animation-delay)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question