flickity
flickity copied to clipboard
sync: $elements instead of sync: '.is-style-carousel__elements'
I am trying to synchronize two Carousels, but I would like to select an object instead of a class. I wonder if this is possible?
var tabs = $(this).find('.is-style-carousel__tabs');
var elements = $(this).find('.is-style-carousel__elements');
$(tabs).flickity({
// sync: $elements
sync: '.is-style-carousel__elements',
});
$(elements).flickity({
});