<view class="main">
<image :src="image" mode="widthFix" :class="[rotate?'go':'aa']"></image>
</view>
methods: {
start() {
this.rotate = !this.rotate;
console.log(this.rotate)
},
}
.aa {}
.go {
transform: rotate(-90deg) translateX(-100px);
}