Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求问addAnimate方法中rotate属性的单位 #408

Open
CardiQ opened this issue Nov 22, 2023 · 1 comment
Open

求问addAnimate方法中rotate属性的单位 #408

CardiQ opened this issue Nov 22, 2023 · 1 comment

Comments

@CardiQ
Copy link

CardiQ commented Nov 22, 2023

我写了以下代码,以使元素text3旋转实现倾斜效果。
现在需要对应角度的正切值来实现移动动作,因此求问其中rotate这个属性的单位,目前观察的不像是以角度或弧度为单位。
(或者有更好的实现方法,我的理解并不深入)

text3.addAnimate({
      from: { rotate: 0, alpha: 0 },
      to: { rotate: -19, alpha: 0 },
      time: 0.4,
      delay: 0,
      ease: 'Quadratic.In'
    });
@drawcall
Copy link
Member

deg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants