I have an animated Gif. I would like to make it as my web page background. Please let me have HTML/CSS code for this.

  • This is not a graphic design question, it should be in the main stack exchange. also.. gif background?? ew. Jul 31, 2017 at 9:43
  • Ill give you an advice: Dont use a gif anywhere on the web unless you have no other chance. Also try and google before you ask questions usually youll find a solution :)
    – SitiSchu
    Jul 31, 2017 at 10:17
  • 1
    Belongs on stackExchange... why is that not an option under "belongs on another site in the network"? Jul 31, 2017 at 11:39
  • @mayersdesign also this question would be down hammered on SE quite quickly since it does not belong there as its a request for somebody to wirte code with no effort on their part.
    – joojaa
    Jul 31, 2017 at 12:19
  • @joojaa - Yes that's true, certainly as its written Jul 31, 2017 at 13:54

1 Answer 1


Animated gifs as full page backgrounds are not a particularly good idea because of the enormous file size such a gif would have to be. GIFs are not suited to very large sized animations. It would be better to have a video file as the background.

This is not strictly a graphic design question, but if you are interested in a technique to add video as a background to a web page, there is some code (html 5, CSS, and JavaScript) and an example shown here: https://codepen.io/dudleystorey/pen/knqyK - I have no affiliation with this website.

Not the answer you're looking for? Browse other questions tagged or ask your own question.