Try using the following code. I used the flickity event "select". You can also try to settle.
var $carousel2 = $('.characters-main').flickity({
prevNextButtons: false,
wrapAround: false,
pageDots: false,
autoPlay: 10000
});
var $carousel = $('.characters-nav').flickity({
asNavFor: '.characters-main',
cellAlign: 'right',
prevNextButtons: true,
contain: true,
pageDots: false,
arrowShape: {
x0: 10,
x1: 70, y1: 50,
x2: 70, y2: 50,
x3: 35
}
});
$carousel.on( 'select.flickity', function(event, pointer, cellElement, cellIndex) {
if ( typeof cellIndex == 'number' ) {
$carousel2.flickity( 'select', cellIndex );
}
});
source
share