我給了身體一個類.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