M
M
Minningt2015-08-16 00:01:47
css
Minningt, 2015-08-16 00:01:47

How to make a selection in a slider?

Hello, how can I make a frame (for example, blue) for the active (current) slider during autoplay? It doesn't work on its own. In manual mode, the frame is made, but I want the frame for the current slide to appear when autoplay is running (sorry for repeating. This is to make it clearer)
kenwheeler.github.io/slick - the
codepen.io/anon/pen/jPJwVV slider itself - here is the test

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lumore, 2015-08-16
@Lumore

$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
  currentSlide.addClass('active');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question