2013-11-14 28 views

回答

3

通過動畫的不透明度:

$("#headerimage").animate({ 
    marginLeft: 0, 
    opacity : 1 
}, 300); 

如果它與顯示隱藏的:沒有,首先表現出來:

$("#headerimage").css({ 
    opacity : 0, 
    display : 'block' // or whatever 
}).animate({ 
    marginLeft: 0, 
    opacity : 1 
}, 300); 
+0

+1相結合的效果。 –

0
$("#headerimage").animate({ 
    marginLeft:"0", 
    opacity: 1 
},300);