A Vue.js rotate component
npm install vue-rotate -S
<rotate ref="rotate" :rotating="isRotating"></rotate>
import Rotate from 'vue-rotate'
...
export default {
data () {
return {
isRotating: true
}
},
components: {
Rotate
}
}
...
Type: Boolean
Required: false
Default: false
Type: Number
Required: false
Default: 10
this.$refs.rotate.play()
this.$refs.rotate.pause()
this.$refs.rotate.reset()