I have two carousel sliders in a page, I'm using slick to make the swipe event and I want that when you swipe one carousel, the other carousel swipes too. I've achieved that, but there is a detail that would be great to implement. First look at this fiddle:
http://jsfiddle.net/eqreem8m/1/
$(document).ready(function(){
$('.slider').slick({
});
// On swipe event
$('.slider').on('swipe', function(event, slick, direction){
var current = $(this).attr('data-slider');
if (direction=='left') {
$('.slider:not([data-slider=' + current + '])').slick('slickNext');
}
else if (direction == 'right') {
$('.slider:not([data-slider=' + current + '])').slick('slickPrev');
}
});
});
I'd want that when you are dragging a slide in a carousel, the other carousel do that same dragging and be 100% synchronized.
I've had a look at the slick documentation but I didn't find anything to do this, so if you know any solution (even with other library) I'd want to read it.