这是我的代码片段。功能之间的延迟
function customFadeIn() {
$("img.imgKit").each(function(index) {
$(this).delay(1000*index).fadeIn("slow");
});
console.log("one runs");
}
function customFadeOut() {
$("img.imgKit").each(function(index) {
$(this).delay(1000*index).not(document.getElementById('card-6')).fadeOut("slow" , function() {
$("#card-6").delay(1000).rotate({angle:0});
});
});
console.log("two runs");
}
我想customFadeOut运行customFadeIn完成后才能,所以我把它称为这个
customFadeIn();
customFadeOut();
但它没有工作,我觉得我做错了这里,帮助将是非常很有帮助。
A [现场演示](http://jsfiddle.net/)能重现问题很长的路要走为了得到我们的帮助,至少表明你愿意帮助我们来帮助你=) – 2012-08-15 09:55:25