在canvas上用rotateY旋转360度,在Iphone 6s上无法如预期那样旋转,但开发工具上正常。
以下是代码:
let canvasAnimation = wx.createAnimation({ transformOrigin: "50% 50% 0" , duration: 2000, timingFunction: "ease-in-out" , delay: 0
|
< canvas animation = "{{canvasAnimationData}}" canvas-id = "myCanvas" /> |
你好,canvas 本身不支持 animation。
那怎么解决旋转canvas的问题