metafizzy / metafizzy/flickity
sync: $elements instead of sync: '.is-style-carousel__elements'
- 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
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