Comment attendre qu'une animation de jquery se termine avant que la suivante ne commence?

J'ai le texte suivant jQuery:

$("#div1").animate({ width: '160' }, 200).animate({ width: 'toggle' }, 300 );
$("#div2").animate({ width: 'toggle' }, 300).animate({ width: '150' }, 200);

Mon problème est que les deux arrivent en même temps. Je voudrais la div2 animation pour démarrer quand le premier se termine. J'ai essayé la méthode ci-dessous, mais il fait la même chose:

$("#div1").animate({ width: '160' }, 200).animate({ width: 'toggle' }, 300, ShowDiv() );
....
function ShowDiv(){
   $("#div2").animate({ width: 'toggle' }, 300).animate({ width: '150' }, 200);
}

Comment puis-je le faire attendre pour le premier à la fin?

source d'informationauteur Abe Miessler