[Help]: Flashing images #1105
-
SummaryI dont know if anyone had this issue before. If applicable, which variants of Embla Carousel are relevant to this question?
Additional informationNo response CodeSandbox exampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
@streamzyuk thank you for your question. I have to get straight to the point here: Without a CodeSandbox with your setup it's impossible to give you advice and/or understand why this is happening. You may create a sandbox with a minimal setup with unnecessary details stripped, enough to reproduce the problem. Let me know if you intend to provide that. |
Beta Was this translation helpful? Give feedback.
Hi David,
Thank you for your time.
I believe the issue has nothing to do with Embla.
It has something to do with 3d transformations on ios.
I have deleted the
transform: translate3d(0, 0, 0);
from embla__slide css class and when you comment out the
EmblaCarousel(viewportNode, OPTIONS)
the flashing goes away.
I did the workaround as to reinit with active option = false (and saved the current translated position as you have advised on another thread) and used element.style.translate to keep the current snappoint when the modal is displayed and when the modal is closed reinit with active= true.
No flasing any more.
I have updated the sandbox. You can try and see that flasing is gone.
all the…