You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug occurs when I pass "loop" as true in carousel options, when loading the page for the first time the layout breaks trying to align the slides
Expected Behavior
HTML should not break when loop is true
Additional Context
I saw the documentation saying that if it doesnt have enough slides will back to loop:false but i tried with a lot slides quantities and all of than gave the layout shift.
Demonstration:
Gravando.2024-08-09.151825.mp4
Im actually using shadcn to do this but I THINK this problem is related to embla specifically (if its not the case, just close the issue)
Did you search for existing issues before creating this? If not, this is a friendly reminder that please make an effort before creating duplicate issues. Duplicate of:
Which variants of Embla Carousel are you using?
Steps to reproduce
The bug occurs when I pass "loop" as true in carousel options, when loading the page for the first time the layout breaks trying to align the slides
Expected Behavior
HTML should not break when loop is true
Additional Context
I saw the documentation saying that if it doesnt have enough slides will back to loop:false but i tried with a lot slides quantities and all of than gave the layout shift.
Demonstration:
Gravando.2024-08-09.151825.mp4
Im actually using shadcn to do this but I THINK this problem is related to embla specifically (if its not the case, just close the issue)
What browsers are you seeing the problem on?
Chrome
Version
8.1.8
CodeSandbox
No response
Before submitting
The text was updated successfully, but these errors were encountered: