flickity-sync icon indicating copy to clipboard operation
flickity-sync copied to clipboard

Allow multiple instances to be synced

Open jakiestfu opened this issue 9 years ago • 2 comments

Unfortunately, not all tests are passing. Two are failing, and I'm scratching my head a little bit as to why...

jakiestfu avatar Nov 04 '16 20:11 jakiestfu

Thank you for this contribution! This could be a nice little feature 😄

Rather than modifying the source, did you try using sync method instead? See demo on CodePen

var flktyA = new Flickity('.carousel-a');
var flktyB = new Flickity('.carousel-b');
var flktyC = new Flickity('.carousel-c');

flktyA.sync('.carousel-b');
flktyA.sync('.carousel-c');

I'll keep this PR open for a bit in case others are interested.

desandro avatar Nov 05 '16 13:11 desandro

Interesting point. My team and I will futz around with this and see if it solves our use case. This would obviously be a simpler and more practical solution. Will post updates soon!

jakiestfu avatar Nov 07 '16 18:11 jakiestfu