There are other versions online, but none of them work for me, here is my code on Chrome. overflow: hidden still cannot be used normally, just replace it with unset. If readers have a better solution, please leave a message, thank you.
<figure>
<img :src="item.photo" :alt="item.title">
</figure>
figure {
border-radius: 10px;
background: #2f3238;
/*overflow: hidden;*/
overflow: unset;
position: absolute; /* this breaks the overflow:hidden in Chrome/Opera */
/* this fixes the overflow:hidden in Chrome */
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}
figure img {
display: block;
transition: opacity 1s, transform 1s;
}
figure:hover img {
opacity: 0.8;
transform: scale3d(1.1,1.1,1);
}
{{o.name}}
{{m.name}}