Slick on Click change to specific slide

I want to change slick slide position by tabs. I have tabs and I need to go to specific slide by clicking on tab. Can anyone help me on this.

Upvotes: 0

Views: 810

Answers (1)

ktscript
ktscript

Reputation: 413

Change your beforeChange event as below

$('.slideshow').on('beforeChange', function(event, slick, currentSlide, nextSlide){l
$(".slick-slide").removeClass('works');
$('.slick-current').addClass('works');        
});

Upvotes: 1

Related Questions