切換內切換動畫時,默認情況下它總是從左向右滑動。jQuery在切換內動畫
如何從右向左滑動?
$("#subcontainer").toggle("slow", function(){
$('#subcontainer').delay(1000, function(){
$(".innercontainer").animate({
marginLeft: parseInt($(".innercontainer").css('marginLeft'),10) == 0 ?
$(".innercontainer").outerWidth() : 0
});
});
});
http://stackoverflow.com/q/596608/114029 –