Graphics Interchange Format (also known as gif) is a bitmap image format that was introduced by CompuServe. It is widely used in World Wide Web for quite so long. Here we can replicate a GIF animated image with the help of Cascading Style Sheet(CSS) animation effect. The GIF image is basically developed from several individual pictures which gets changed in a fraction of seconds to make it look life its a moving picture as a whole.
Here instead of generating an individual GIF image we are going to generate the sequences of these images with the help of CSS animation effect. The code will mostly be using the transition between the opacity:0 to opacity:1. This have to exactly time in such a way that one image comes after another in proper order. Lets take a look at a DEMO.
The original GIF animated image

The CSS3 animated image sequence




























NOTE: The replication of a GIF image through CSS3 is not cost effective. For this simple GIF animated image it took almost 1K lines of code to get it in the expected shape.
Code of the Snippet
Paste this inside header part or your CSS style sheet<style type="text/css">
div#gif_container{
position:relative;
height:550px;
}