M
M
myskypesla2017-03-22 19:32:45
css
myskypesla, 2017-03-22 19:32:45

How to make your own animation in slick?

Please tell me how to make the slide not move from left to right and so that there is no flipping or fade effect, but for example, I clicked on the arrow, the text on the slide went to the left, the picture to the right, and then others arrived?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Jakim, 2017-11-22
@Jakim

Slick does not support such sophisticated animations, it can have different animations for shift, ease-in ease-in-out, etc.
In order to make individual effects, you can catch the slide change event

$('.you_tag_class').on('beforeChange', function(event, slick, currentSlide, nextSlide){
// здесь навешиваете разные анимации для своих элементов, группируете их по времени выполнения и в свою очередь делаете скорость анимации в слике с учетом всех ваших временных выполнений
    });

$('.one-time').slick({
  speed: 300  // скорость анимации будет зависить от времени анимирования всех ваших блоков
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question