Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork220
-
BetaWas this translation helpful?Give feedback.
All reactions
👀 1
Replies: 3 comments
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@keithengg did you ever find out a solution? I've never done this effect, but I have a hacky suggestion. I've once used an |
BetaWas this translation helpful?Give feedback.
All reactions
-
@davidjerleke. I am also stuck on this issue. @keithengg Did you find a solution? When scrolling I want the center image to grow in width smoothly. Changing the flex: 0 0 value; breaks the carousel |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@keithengg,@Joobs,@tayteboss — adjusting slide sizes while the carousel is animating will reset the carousel. This kind of change isn't supported while the carousel is animating, as any ongoing animation will be interrupted and the carousel will reset. A workaround could be to use However, you candisable the internal resize logic (which triggers the reset) and implement your own instead. That way, you have full control over when the resize should be triggered—allowing you to avoid it when slide sizes change during transitions: const[emblaRef,emblaApi]=useEmblaCarousel({watchResize:false,}) Just keep in mind that the internal resize logic calls |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1