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
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?
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.
I did it, after some fine cutting I've created the perfected image for the job. Here is the gif image:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With