我给了身体一个类.wrapbgone
,我在X秒后将类切换到.wrapbgtwo
。jQuery用淡入淡出效果改变身体的背景URL
我希望切换出现淡入淡出效果。
这是我的CSS:
.wrapbgone{background:url('http://placehold.it/500x500/915');height:100%;}
.wrapbgtwo{background:url('http://placehold.it/500x500/400');height:1580px;}
这里是例子:http://jsbin.com/ebemez/4/edit