Change Site Loader or PreLoader Icon in Bootstrap/CSS HTML Question

I'm using an HTML template and it's got a cool Pre-loader (the image that comes up briefly while the page loads). However, I'd like to swap that out for a gif image. What can I add to the existing code to achieve this?

#load {  
  z-index: 9999;
  background-color: #000000;
  opacity: 0.75;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  margin: -5px auto 0 auto;
  left: 0;
  right: 0;
  border-radius: 0px;
  border: 5px solid #FF4136;
  box-shadow: 10px 0px #000000, 10px 0px #000000;    
  animation: shadowSpin 1s ease-in-out infinite;
}

Open in new window


Thanks for your help
TessandoIT AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zc2Commented:
I guess, somewhere on the HTML page you have HTML elements, like
	<div id="preloader">
	    <div id="load"></div>
	</div>

Open in new window

What if you just replace it with
	<div id="preloader">
	  <img id="load-gif" src="URL to the GIF"/>
	</div>

Open in new window

and then add the following CSS:
#load-gif {  
  z-index: 9999;
  position: absolute;
  top: 50%;
  left: 50%;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TessandoIT AdministratorAuthor Commented:
That worked perfectly! Thank you for the advice, my friend. Nice job.
0
zc2Commented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.