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

Flash on image load #296

Open
GabrielLanglois opened this issue Jul 24, 2020 · 0 comments
Open

Flash on image load #296

GabrielLanglois opened this issue Jul 24, 2020 · 0 comments

Comments

@GabrielLanglois
Copy link

Hello,
I made this website using pixelcog parallax.js: http://www.sfdecacao.com/ (it's in French but only the images are important here)

As you can probably see, each background image using the parralax effect takes a little bit of time to load, so there is a flash before it appears. At first the flash was white, but I made the background color of the website black so that it would be more natural looking. However, I am still looking for a way to fix this flash. The problem is that the images only load when they appear on screen, and not when the website loads, so the user sees each flash.

The source code for my website is here: https://github.com/GL150hcknt/SFC

I do not know exactly if this is caused by parallax.js or not, but it would be a great help if someone knew how to fiw this.

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

1 participant