Is there a way to make only individual elements pop up on hover instead of all of them at once?
items: [{
item: "Book",
info: "Lorem ipsum",
displayInfo: false
},
{
item: "Pen",
info: "Lorem ipsum",
displayInfo: false
},
{
item: "Paper",
info: "Lorem ipsum",
displayInfo: false
}
]
<ul>
<li v-for="(item,index) in items" v-bind:key="index" @mouseover="item.displayInfo=true;" @mouseleave="item.displayInfo=false">{{item.item}}
<p v-if="item.displayInfo">{{item.info}}</p>
</li>
</ul>