设置元素移动同时调整元素角度,添加动画效果后,会失效一个动作 #7615
Replies: 1 comment
-
|
你好!看起来是 transform 动画和位移动画互相覆盖了(都在改 transform),所以一个会把另一个“顶掉”。一般有两种解决思路:
另外,G6 的 updateNodeData 里用 animation.update 时,如果 fields 里有 transform,最好不要再单独对 x/y 做动画,改成用 transform: [['translate', x, y], ['rotate', angle]] 统一控制。希望能帮到你! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我模拟了一个元素,想要设置同时修改元素的位置以及旋转角度,不过一旦我设置了transform的动画,位移效果就会失效,设置位移效果的动画,旋转效果就会失效,仿佛这两个功能是互斥的
Beta Was this translation helpful? Give feedback.
All reactions