Not able to style container within embla__slide with flex or grid #606
-
Hey everyone, I have been trying to understand why the containers I am styling within the embla__slide container are causing the carousel function to stop, until I found out that either using flex or grid are causing this. So, I am not able to position the elements within the container properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @Patrikur, You didn't share a CodeSandbox or similar to demonstrate the problems you are facing so I have nothing to investigate. Please create a CodeSandbox with your setup if you want help. There are tons of examples here and you also have a carousel generator. Have you seen the examples? Best, |
Beta Was this translation helpful? Give feedback.
@Patrikur it seems like you have
overflow: hidden
on the wrong element. Try removing all your CSS in theembla
andembla__viewport
class, and replace it with this:Additionally I would recommend you to add
touch-action: pan-y;
on yourembla__container
class.Best,
David