Skip to content

[Help]: Animations add incorrect slides offset, but only sometimes #346

Closed Answered by davidjerleke
rtivital asked this question in Help
Discussion options

You must be logged in to vote

Hi Vitaly (@rtivital),

Thank you for your question and congratulations on your new major version 5 release. I saw your release post on Reddit and it seems like devs are saying great things about Mantine in general and the new upgraded Mantine 5.0.0 🎉!

The problem

I think you correctly describe why this is happening here:

embla carousel is init before the animation ends which, I suppose, causes embla to calculate slides offset incorrectly.

...so nice catch 🙂. Embla Carousel works a bit different than other carousel libraries in the sense that it only reads slide positions and sizes (width/height) upon initialisation. If you compare with many other libraries, they set slide widths themsel…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@rtivital
Comment options

@davidjerleke
Comment options

@rtivital
Comment options

@davidjerleke
Comment options

Answer selected by rtivital
Comment options

You must be logged in to vote
4 replies
@rtivital
Comment options

@davidjerleke
Comment options

@rtivital
Comment options

@davidjerleke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants