Scaling slides while transitioning #370
-
Hi, I'm attempting to recreate this carousel using embla: The slide in the first position is 100%, second position is 66.66%, and third position is 33.33% I'm attempting to build on the scale example, but I can't seem to get it to work. Here's my work in progress codesandbox: Any tips or guidance would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @blimpmason, Thank you for your question. Here's a working CodeSandbox with the align option set to
I'm not sure why your CodeSandbox is failing but you can use mine as a starting point. It's not possible for me to spend time doing debugging, because you can do it as well as me and compare it with my CodeSandbox in order to see what differs. Best, |
Beta Was this translation helpful? Give feedback.
@davidjerleke one last quick question for you! I ended up compromising with the designer and only showing 2 slides at a time instead of three. The method in the codesandbox demo above works in this case.
The only issue now is that the following code breaks with the latest version of embla-carousel-react (the codesandbox you linked is using v 6.0.2):