Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use in next.js, refresh page component reload, there is a flash situation, what should I do? #142

Open
Puyi229822 opened this issue Jun 25, 2024 · 1 comment

Comments

@Puyi229822
Copy link

Maybe because of the problem of loading css order, what can I do in Next.js, ask for help

@sneas
Copy link
Owner

sneas commented Jun 26, 2024

You'll need to have this CSS added somewhere before the <img-comparison-slider> tag https://cdn.jsdelivr.net/npm/img-comparison-slider@8/dist/styles.css

This CSS is distributed via NPM and can be found in dist/styles.css folder of the component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants