Splide carousel in a tab which is not visible on load. How to make it 'refresh' when visible? #1148
Unanswered
pixiemediaweb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm adding splide carousels in tabs on a page. When a splide is initialised in a not-visible container, and then subsequently made visible (by clicking the tab title), the carousel is running, but the alignment is off - it needs to re-evaluate the spacing between each item. If i resize the screen to a responsive viewport it wakes up, but how can i trigger this re-evaluation with a click event?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions