How to display some info when you hover on image using Quasar framework and Vue.js

You can do it in CSS. Advantage of this approach:

  1. You don’t clutter your template and javascript with unnecessary logic.
  2. You can add CSS transition effect.


 <div class="col-3">
   <q-img src="../assets/doctors/doctor-08.jpg" class="my-img">
      <div class="absolute-full text-subtitle2 flex flex-center my-text">

.my-img .my-text {
  visibility: hidden;
  opacity: 0;
  transition: .3s;

.my-img:hover .my-text {
  visibility: visible;
  opacity: 1;
  transition: .3s;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top