I am new to vuejs animation. In my webpage, I want to add a sample Vue-Anime components sample components to my current Vue CLI project. After I installed the vue-animejs.
I used the template code. How can I use this template in order to make it work? Please help.
<template>
<div v-anime="{ rotate: '1turn', backgroundColor: '#ffffff', duration: 2000, loop: true }"></div>
</template>
export default {
name: "my-component",
data() {
return {};
},
mounted() {
this.$anime(/* ... animate something ... */)
},
}