Ok so basically i'm using a gif as a background image, however i'd like it to display a static image until the gif has fully loaded and be ready to play.
Having read a few similar threads i know you can target elements with js and change them once they've loaded however the only examples i've seen target img tags and not a background image via css.
Heres a snippet if it helps
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
width: 100%;
height: 100%;
background: #232228 url(../img/bg-center.jpg) top no-repeat; /* Static */
background: #232228 url(../img/bg-center.gif) top no-repeat; /* Animated */
}