Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animated loading gif image as a repeated background

I would like to find something like this:


(source: opengraphicdesign.com)

But that it can be a repeated background on an html element and looks like a whole block.

For example, a 80x80 gif as a repeated background in a 400x400 DIV that would give the illusion of a big 400x400 animated image.

Where can I find such a GIF

like image 805
Pablo Avatar asked Dec 23 '10 14:12

Pablo


People also ask

Can you use a GIF as a background image?

Can I use a gif animation as a background image in html? Yes is the answer, you can also do an experiment… Animated background images?

How do you make a GIF a background in twine?

Here is how to change the background image when using Twine 2's default Harlowe format. Click the menu in the bottom-left and then Edit Story Stylesheet. Copy and paste this CSS code to change the Background for your entire game. Replace the URL with the image/GIF that you would like to use.


1 Answers

I did it, after some fine cutting I've created the perfected image for the job. Here is the gif image: alt text

And here is a live demo http://jsfiddle.net/dtxSW/94/

HTML:

<span></span>
<span></span>
<div></div>

CSS:

div {
  background:url('http://i.stack.imgur.com/tQTRW.gif') repeat;
  height: 500px;
}

span {
  width: 108px;
  height: 18px;
  display: block;
  background:url('http://i.stack.imgur.com/tQTRW.gif') repeat-x left;
}

This gif can be repeated infinitely and still look as one big whole animated image.

like image 110
Pablo Avatar answered Oct 11 '22 22:10

Pablo