使用下面的代码发生的唯一事情是图像消失,根本没有动画。任何提示?jQuery爆炸动画不起作用
var img1 = $('<img src="image' + num + '.jpg" />').css({"position": "absolute"});
var div = $('<div id="wtf">').css({
"position": "absolute",
"left": targetX-80,
"top": targetY-112.5
});
setTimeout(function() {div.append(img1).hide().fadeIn(400);}, 500);
setTimeout(function() {div.append(img1).hide("explode", { pieces: 16 }, 400);}, 800); //not working
$(document.body).append(div);
您是否包含jQuery UI? http://jqueryui.com/ – PhearOfRayne
你能演示一个演示吗?否则,这里什么都不做。 – Sparky