.at-organic-shape {
position: relative;
height: 500px;
width: 500px;
}
.at-organic-shape figure img:hover {
background-color: #6495ED;
border-radius: 35% 80% 65% 70%/50% 65% 70% 85%;
transition: all 0.5s linear;
}
<div class="at-organic-shape">
<figure>
<img src="https://image.ibb.co/nHDcuq/1-F19-F06-C-0-F3-E-4055-B0-E5-1-D73728-A7730.png" class="img1"/>
</figure>
</div>
您可以尝试使用伪元素和
mix-blend-mode
.at-organic-shape {
position: relative;
height: 500px;
width: 500px;
}
.at-organic-shape figure {
position:relative;
background:#fff;
}
.at-organic-shape figure:after {
content:"";
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:transparent;
mix-blend-mode: color;
transition: all 0.5s linear;
}
.at-organic-shape figure:hover::after {
background:#6495ED;
}
<div class="at-organic-shape">
<figure>
<img src="https://image.ibb.co/nHDcuq/1-F19-F06-C-0-F3-E-4055-B0-E5-1-D73728-A7730.png" class="img1"/>
</figure>
</div>
你可以尝试这个
.at-organic-shape figure img:hover {
-webkit-filter: drop-shadow(1px 1px 0 #6495ED) drop-shadow(-1px -1px 0 #6495ED);
filter: drop-shadow(1px 1px 0 #6495ED) drop-shadow(-1px -1px 0 #6495ED);
border-radius: 35% 80% 65% 70%/50% 65% 70% 85%;
transition: all 0.5s linear;
}
。这将为您提供黑色图像的轮廓。如果您想要其他颜色,则可以更改。你想要吗?