metafizzy / metafizzy/flickity

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

Open
#1,292 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.6k
Forks
593
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the sync option in the tabs Flickity initialization and the $elements value shown in the report. Determine whether sync can accept that object instead of '.is-style-carousel__elements'; done means the two shown carousels synchronize using the object, with the behavior covered by a relevant test if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.