Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Preloading background images that are in an inline style Re: Preloading background images that are in an inline style

#120607
Taufik Nurrohman
Participant

Oh, so you want a loading animation when the background is loading. Just add a new markup for the loading animation:

<div class='loading-bg'>
<div style='background-image:...'></div>
</div>
.loading-bg {
background:white url('loading.gif') no-repeat 50% 50%;
}