悬停时如何在图像上添加具有多重混合模式的图层?

How to add a layer with multiply blend mode on image when hover?

悬停时我想要这样的东西:从第一张图片到第二张图片。效果是:灰度模糊原始图像+顶部的叠加层。

现在我正在使用更改为另一个图像技巧来执行此操作,但这很不方便。到目前为止,这是我的代码:

.imgwrapper {
  position: relative;
}
.showtext + div {
  position: absolute;
  left: 113px;
  top: 113px;
color: white; 
 text-decoration:underline;
  display: none;
  pointer-events: none;
  font-size: 18px;
  width: 250px;
  letter-spacing: 4px;
}
.showtext:hover + div {
  display: block;
}
<a href="single-illustration-sidebar-left.html" class="permalink">
     <div class="desktop-3 mobile-half columns">
      <div class="item">
       <h3>Plython album</h3>
       <span class="category">identity</span>

       <div class="imgwrapper">
       <img  class="showtext" src="images/thumb_item08.png" onmouseover="this.src='images/thumb_item08a.png';" onmouseout="this.src='images/thumb_item08.png';" />
       <div id="view">view</div></div>
      </div><!-- // .item -->
     </div><!-- // .desktop-3 -->
    </a>

谢谢!

希望此代码对您有所帮助。

Working Fiddle

您需要为您的图像添加一个容器并在其上触发悬停。

.img-con {
  width: 250px;
  padding: 5%;
  background: rgba(209, 19, 15, 0);
  transition: ease .1s;
  -webkit-transition: ease .1s;
  -moz-transition: ease .1s;
  -ms-transition: ease .1s;
  -o-transition: ease .1s;
}
.img-con > img {
  position: relative;
  width: 100%;
  transition: ease .1s;
  -webkit-transition: ease .1s;
  -moz-transition: ease .1s;
  -ms-transition: ease .1s;
  -o-transition: ease .1s;
}
.img-con:hover {
  background: rgba(209, 19, 15, 0.75);
}
.img-con:hover > img {
  z-index: -1;
  -webkit-filter: grayscale(100%) blur(2px) contrast(200%);
  filter: grayscale(100%) blur(2px) contrast(200%);
}
<div class="img-con">
  <img src="http://i.stack.imgur.com/zzzFU.png" />
</div>