Skip to content
Discussion options

You must be logged in to vote

Hi @th-km,

Thank you for your question.

It seems that the logic is within this toggleEmblaReady callback (JS version) to check when embla is initialized/resized, and maybe this internalEngine(), but I'm not quite sure to understand how it is working, and how to implement this in React.

That's correct. Embla needs to read the slide positions and dimensions to calculate the scroll snaps correctly before you start moving slides around. That's why you need to wait for Embla to initialize first before setting position: absolute; on your slides. The optimal solution to this would be to create an embla-carousel-fade plugin but lets see if I get time to do that in the near future. There's an is…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@th-km
Comment options

Answer selected by th-km
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants