htmlcsshovercss-transitionscross-fade

How to fix popping on hover?


hope you are all well. How do i fix the popping on image hover? I need it to slowly go large. as you can see the large image just fades.

I have attached a nice example to explain this more.enter image description here

Any help would be grateful here. Thx yummi

/*............ right-column ............*/

.right-column {
  position: absolute;
}


/*......... crossfade on buttons .........*/

#hover img {
  -o-transition: .3s;
  -ms-transition: .3s;
  -moz-transition: .3s;
  -webkit-transition: .3s;
  position: absolute;
}

.nohover {
  opacity: 0;
}

a:hover .hover {
  opacity: 0;
}

a:hover .nohover {
  opacity: 1;
}


/*................ bevels ................*/

img.bevel {
  border-radius: 20px;
}

img#bevel {
  border-radius: 20px;
}


/*............. pop on hover .............*/

#pop img {
  transition: .5s ease
}

#pop img:hover {
  -webkit-transform: scale(1.15);
  -ms-transform: scale(1.15);
  transform: scale(1.15);
  transition: 0.5s ease;
}
<div class="right-column" id="pop" align="center">
  <div>
    <a id="hover" href="gallery.html"><img src="http://wizzfree.com/pix/vid0.jpg" width="120" id="bevel" class="nohover"><img src="http://wizzfree.com/pix/vid0b.jpg" width="120" id="bevel" class="hover"></a>
  </div>


Solution

  • Using only one image and CSS filter:

    .btnImg {
      display: inline-block;
      width: 120px; height: 80px;
      border-radius: 20px;
      overflow: hidden;
      transition: transform .3s;
    }
    .btnImg img {
      width: inherit; height: inherit;
      object-fit: cover;
      transition: filter .3s;
      transform: scale(1.05);
      filter: blur(3px);
      backface-visibility: hidden;
    }
    .btnImg:hover {
      transform: scale(1.16);
    }
    .btnImg:hover img {
      filter: blur(0);
    }
    <a class="btnImg" href="gallery.html">
      <img src="http://wizzfree.com/pix/vid0.jpg">
    </a>