パラメータを受け取ってアニメーション化する関数があります。前の関数が終了した後、別のパラメーターを使用してこの関数をコールバックしたいと思います。これまでのところ、アニメーションは機能しますが、次々には実行されません:
var thisis = document.getElementById("thisis");
var txt1 = document.getElementById("txt1");
var txt2 = document.getElementById("txt2");
var txt3 = document.getElementById("txt3");
var txt4 = document.getElementById("txt4");
var txt5 = document.getElementById("txt5");
$("#thisis").fadeIn(400, function(){
animetxt(txt1, function() {
animetxt(txt2, function(){
animetxt(txt3, function(){
animetxt(txt4, function(){
animetxt(txt5);
});
});
});
});
});
function animetxt(o){ //.css and .animate on the parameter// }
あなたの助けをいただければ幸いです:)