flickity icon indicating copy to clipboard operation
flickity copied to clipboard

sync: $elements instead of sync: '.is-style-carousel__elements'

Open infosion opened this issue 1 year ago • 0 comments

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({
  });

infosion avatar Nov 23 '23 15:11 infosion