<div class="img-container">
<div class="img-left"></div>
<div class="img-right"></div>
</div>
<style>

.img-container{
position: relative;
width: 200px;
height: 100px;
border:solid 4px red;
}

.img-left{
background: url(http://demo.imatlas.com/img/left.jpg);
background-size: cover;
width: 100%;
height: 100%;
}

.img-right{
position: absolute;
left: 0;
top: 0;
background: url(http://demo.imatlas.com/img/right.jpg);
background-size: cover;
-webkit-mask-image: -webkit-linear-gradient(left top, transparent 50%, white 50%);
width: 100%;
height: 100%;
}</style>

相关文章:

  • 2021-12-11
  • 2021-12-02
  • 2021-06-29
  • 2021-10-17
  • 2021-12-16
  • 2021-12-17
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-12-03
  • 2022-01-10
  • 2021-11-17
  • 2021-07-17
相关资源
相似解决方案