Answer the question
In order to leave comments, you need to log in
How to make a gradual loading of a large image without js?
Please tell me, I have a large background image, about 1 mb.
The image is actually a large gradient + some graphics that cannot be selected and placed using css on the background of the gradient.
Now it's like this, but it doesn't work:
body {
background-image: -webkit-linear-gradient(180deg, #a0cbdd, #31b1e6);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#31b1e6', endColorstr='#a0cbdd',GradientType=1 );
background-image: url(/images/snow-bg.png);
background-size: cover;
}
Answer the question
In order to leave comments, you need to log in
You can try using multiple background for this, although it's better to remake the background image itself.
As far as I could understand, you need 2 backgrounds ?!
If so, then just put another div in the body and set the background for the body - gradient, and for the div - "+ some graphics" (another, translucent image).
And in addition: use progressive png (unless of course you already use it).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question