Replies: 2 comments 3 replies
-
Hi @TomBell95, Thank you for your question. I think you should try this:
- const autoheight = useRef(AutoHeight())
- const [emblaRef] = useEmblaCarousel(options, [autoheight.current])
+ const [emblaRef] = useEmblaCarousel(options, [AutoHeight()])
const OPTIONS: EmblaOptionsType = {
watchResize: () => true,
}
.embla__container {
backface-visibility: hidden;
display: flex;
+ align-items: flex-start;
touch-action: pan-y;
flex-direction: row;
height: auto;
margin-left: calc(var(--slide-spacing) * -1);
} Unfortunately, I haven't had the chance to update the documentation so it's lagging behind. Let me know if it helps. Best, |
Beta Was this translation helpful? Give feedback.
-
No response - closing. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a slider where the content inside changes dependant on the slide, meaning that each slider can have different heights. However, as you can see in the below screenshots + sandbox, the footer will always remain in the same place once a slide with content has been viewed... How could I solve this issue? I have been following this discussion but not sure this is the same issue?
https://codesandbox.io/s/embla-carousel-default-react-forked-tybllv?file=/src/js/EmblaCarousel.tsx:430-446
Beta Was this translation helpful? Give feedback.
All reactions