You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to change the main carousel on the hover event of a nav item, using flickity-sync.
metafizzy/flickity-sync#8 (comment) essentially covers the functionality I'm after, though of course I'd need a hover event instead of staticClick. Is this available, or is it possible to add a custom hover event?
var$carouselMain=$('.carousel-main').flickity();var$carouselNav=$('.carousel-nav').flickity({asNavFor: '.carousel-main',contain: true,pageDots: false,});// select main on nav hover$carouselNav.on('mouseover','.carousel-cell',function(event){varindex=$(event.currentTarget).index();$carouselMain.flickity('select',index);});
Hi,
I'm looking to change the main carousel on the hover event of a nav item, using flickity-sync.
metafizzy/flickity-sync#8 (comment) essentially covers the functionality I'm after, though of course I'd need a hover event instead of staticClick. Is this available, or is it possible to add a custom hover event?
e.g.
The text was updated successfully, but these errors were encountered: