I gave the body a class .wrapbgone and I am switching the class after X seconds to .wrapbgtwo.
I want the switching to appear with fade effect.
This is my CSS:
.wrapbgone{background:url('http://placehold.it/500x500/915');height:100%;}
.wrapbgtwo{background:url('http://placehold.it/500x500/400');height:1580px;}
and here is the example: http://jsbin.com/ebemez/4/edit
Because you’re swapping a class, you can’t fade it to the best of my knowledge (you can cycle background colours – see the header of http://www.made-by-mike.co.uk), but not images.
The best solution I can think of is to nest two absolutely-positioned divs in the root level of your document (before your content div):
Then use jQuery to fade one in over the other: