小编Rob*_*man的帖子

用jQuery动画translate3d

我正在尝试使用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)

css jquery animation transform

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

animation ×1

css ×1

jquery ×1

transform ×1