I have recently installed the vue-flip plugin in a NuxtJs (VueJS) project that I created using the command:
npx create-nuxt-app <project-name>
.
In the index.vue file, I simply added:
<vue-flip active-click="true">
<div slot="front">
front
</div>
<div slot="back">
back
</div>
</vue-flip>
I ensured to register the plugin in nuxt.config.js :
plugins: [
'~/plugins/vue-flip'
]
Additionally, I created the file vue-flip.js within the plugins folder :
import Vue from 'vue'
import VueFlip from 'vue-flip'
Vue.use(VueFlip)
However, after running npm run dev and accessing localhost:3000, both the front and back texts are visible simultaneously instead of displaying just the front text and showing the back text only when clicked. How can this issue be resolved?