Home › Forums › CSS › Preloading background images that are in an inline style › Re: Preloading background images that are in an inline style
January 10, 2013 at 8:44 pm
#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%;
}