【发布时间】:2013-06-02 06:31:00
【问题描述】:
是否可以使用 jQuery 为 webkit translate3d 制作动画?
我读到,当使用 jQuery 的 animate 属性时,您必须使用 css 属性的驼峰式大小写,但在 translate3d 的情况下,这似乎不起作用。
我有以下代码,我想制作动画而不是立即执行?
$("#main-nav").css('-webkit-transform', "translate3d(0px, " + e + "px, 0px) scale(1)");
为了澄清,“e”是一个变量,它传递给运行我上面的代码的函数。
【问题讨论】:
-
camelCase 在传递给动画函数时不是必须的
标签: javascript jquery css jquery-animate