Animation.rotateY

    Number deg,deg的范围-180~180,在Y轴旋转一个 deg 角度。

    示例

    请使用百度APP扫码

    Animation.rotateY - 图3

    1. data:{ },
    2. onReady() {
    3. this.animation = swan.createAnimation({
    4. duration: 1000,
    5. delay: 0})
    6. rotateY() {
    7. this.animation.rotateY(Math.random() * 720 - 360).step()
    8. this.setData({animation: this.animation.export()})
    9. });