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

When using asNavFor, fade stops working (Webpack)

Open dungle-scrubs opened this issue 5 years ago • 4 comments

Hi, I'm using webpack and when I attempt to use flickity-fade with flickity-as-nav-for, fade breaks and it reverts back to a swipe.

When I remove flickity-as-nav-for, fade starts working again.

Thanks

dungle-scrubs avatar Jun 15 '19 07:06 dungle-scrubs

This sounds like a structure issue with Flickity. Currently add-ons like flickity-fade and flickity-as-nav-far use flickity as a dependency, but it should be a peerDependency to resolve issues like this one.

Sorry I don't have a good solution here. Ideally both flickity-face and flickity-as-nav-for should be loading and adding on to the same Flickity instance. I don't have Webpack expertise so I'm not sure how to resolve this.

desandro avatar Jun 15 '19 14:06 desandro

Thanks for taking a look desandro, I'll continue to play around with it and update if I find a solution.

dungle-scrubs avatar Jul 09 '19 03:07 dungle-scrubs

And luck fixing this @dungle-scrubs? I'm having the same issue

plucile avatar Oct 07 '19 06:10 plucile

Overriding the CSS with the CSS animation outlined here https://github.com/metafizzy/flickity-fade/issues/4 seems to resolve the issue.

addedlovely avatar Apr 08 '21 13:04 addedlovely