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
如何让图片上面的文字, 跟着图片一起按照中心点旋转,而不是横向移动? #797
Comments
一人血书,求更新文档 QAQ |
动画的时候可以给 paiZi.animate('')
.when(100, {
rotation: 0
})
.when(1000, {
rotation: -0.3
})
.when(2000, {
rotation: 0.3
})
.when(3000, {
rotation: 0
})
.during(el => {
el.getTextContent().rotation = el.rotation;
})
.start() |
思路大概是这样,可能你还需要调整下 origin。 |
写了个小demo,你可以参考下。https://codepen.io/plainheart/pen/mdmggWj |
|
多谢多谢,您真厉害,麻烦问一下有没有相关的群?想学习一下QwQ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按理说图片上面的文字,应该是跟图片一样的倾斜角的,现在并没有发生对应的旋转而是对应角度平移
The text was updated successfully, but these errors were encountered: