How can I solve this swiper styling issue in the video ?
hello i am using Laravel to create a books store there are a section for highly ranked books i am using swiper Api in this swiper and below is the code the swiper in js and a video of that happiens whe relad the page
11 Replies
Why no one answers my questions
to be blunt: it's hard to tell without seeing it in your own browser.
You're asking a very specific question about a particular library in a way that it can only be answered if someone (probably recently) encountered the exact same problem.
If you had a live minimal demo, people might be able to take a look, but then again it's also often hard to diagnose issues for libraries people aren't familiar with
I am sharing a demo its not regarding the lib it's regarding the css
a demo video isn't really that useful for diagnosing a problem, just to see if the problem is replicated in your own browser. If the issue is with the CSS, you've also shared nothing of your HTML or CSS
The lib is working swiper but the css is what crashed
from just the video it looks kinda like a FOUC, flash of unstyled content, but it's hard to say for sure
you're basically walking into a mechanic with drawings of what's wrong with your car and asking why they can't fix it
What happens is that when the page loads the cards came under each other then after the age is fully loaded it becomes normal
I can send the css and the html of the component
yeah, that sounds like a FOUC. Usually that's fixed by including the CSS before the HTML its rendering, having some minimal version inline, or rendering a placeholder until it's done, but it's a hard to solve problem
this is the html
a FOUC has to do with how the browser loads the HTML and the CSS, and how it has to render something before all the bits are available. The snippet of html you shared has nothing to do with this.
this is why I'm saying a live example someone can see in their own browser is so important
any ways i solved the problem iam using Laravel with Vite so some time bundling has some problems with lib that has CSS and JS together ,thank you