求问addAnimate方法中rotate属性的单位
CardiQ opened this issue · comments
CardiQ commented
我写了以下代码,以使元素text3旋转实现倾斜效果。
现在需要对应角度的正切值来实现移动动作,因此求问其中rotate这个属性的单位,目前观察的不像是以角度或弧度为单位。
(或者有更好的实现方法,我的理解并不深入)
text3.addAnimate({
from: { rotate: 0, alpha: 0 },
to: { rotate: -19, alpha: 0 },
time: 0.4,
delay: 0,
ease: 'Quadratic.In'
});
Anonymous commented
deg