我试图一次淡出多个 div 并在完成后淡入一个 div。这是代码:
if($(this).attr("id")==="benefits-button"){
$("#solar-about, #home-page, #process-page, #financing-page, #vendors-page, #consump-info-page, #smart-page, #wind-page, #about-page").fadeOut(750, function() {
$("#benefits-page").fadeIn(750);
});
}
When there are multiple divs in the selector, the fadeOut and fadeIn happen at the same time.
问题:我如何在淡出之后获得淡入?
谢谢