animation在基于原点旋转之后,xy轴朝向发生了变化
// 先旋转同时放大,然后平移
this.animation.rotate(45).scale(2, 2).step()
this.animation.translate(100, 100).step({ duration: 1000 })
this.setData({
animation: this.animation.export()
})
对一个view旋转之后,xy轴的朝向发生了变化。
// 先旋转同时放大,然后平移
this.animation.rotate(45).scale(2, 2).step()
this.animation.translate(100, 100).step({ duration: 1000 })
this.setData({
animation: this.animation.export()
})
对一个view旋转之后,xy轴的朝向发生了变化。