Ajax Loader
×
CSS
html,body{height:100%;}
1
html,body{height:100%;}
2
img{position:fixed;top:0;left:0;opacity:0;}
 
JavaScript
(function(){
1
(function(){
2
  var delay = 100
3
  var backgrounds = "http://dump.fm/images/20140906/1410041305403-dumpfm-tommoody-curator.png http://dump.fm/images/20140906/1410042214267-dumpfm-tommoody-curator2.png http://dump.fm/images/20140906/1410044139323-dumpfm-tommoody-curator3.png".split(" ")
4
  backgrounds.forEach(function(bg){
5
    img = new Image ()
6
    img.src = bg
7
    document.body.appendChild(img)
8
  })
9
  var i = -1
10
  function animate (){
11
    i = (i + 1) % backgrounds.length
12
    document.body.style.backgroundImage = "url(" + backgrounds[i] + ")"
13
    setTimeout(animate, delay)
14
  }
15
  animate()
16
})()
 

Untitled

CSSDeck G+