我正在尝试使用Jquery 2.1.1为translate3d设置动画.在10秒钟内.然后,当动画完成时,我希望它提醒我.但问题是它没有动画.它只是立即改变到新的CSS.
有一些英雄可以帮我这个吗?
我现在使用的代码:
$( ".circle" ).animate({ textIndent: 100 }, {
duration : 10000,
step : function() {
$(this).css("transform","translate3d(0px, 320px, 0px)");
},
complete : function() {
alert("completed the animation");
}
},'linear');
Run Code Online (Sandbox Code Playgroud)