Slides flash one under the other before settling to show them next to each other #6828
Unanswered
kevinrenskers
asked this question in
Q&A
Replies: 1 comment 4 replies
-
This means you initialise it too late, init it as soon as the DOM is ready, and there will no be any flickers, or hide it on your own and show when it is ready |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the carousel initially loads on screen, you see all slides one under each other for a brief moment, before they quickly settle to be shown one next to the other.
I'm seeing the same behavior in Safari, Chrome and Firefox. It's easily visible with a very minimal example:
Screen.Recording.2023-07-07.at.14.54.37.mov
To run the example:
But in a real-world website it's much worse:
Screen.Recording.2023-07-07.at.14.56.58.mov
In my opinion this seems like a bug. The slider should be shown with all the slides already in their correct position, but instead you get this "flash of unpositioned content". However my bug report was promptly closed without comment other than pointing to the discussions and Stackoverflow, which is disappointing. How is this not a bug?
Beta Was this translation helpful? Give feedback.
All reactions