SOURCE

console 命令行工具 X clear

                    
>
console
<div class="box">
    <img src="https://images.pexels.com/photos/31523837/pexels-photo-31523837.jpeg" alt="">
    <div class="mask"></div>
    <div class="info">
        <span>智能体</span>
        <h3>打造行业智能体,共建全场智慧</h3>
        <a href="#">了解更多</a>
    </div>
</div>
*{
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.box{
  width: 600px;
  height: 400px;
  margin: 100px auto;
  position:relative;
  outline: 1px solid red;
  overflow: hidden;
} 

img{
  width: 100%;
}
.mask{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
}




.info{
  position: absolute;
  bottom: -50px;
  left:0;
  /* background-color: #ccc; */
  width: 100%;
  padding: 10px 20px;
  color: #fff;
}

.info h3{
  padding: 10px 0 30px;
}

.info span{
  padding: 0;
  border: none;
}

.box:hover .mask{
  background-image: linear-gradient(transparent, rgba(0,0,0,.8));
}

.box:hover .info{
  bottom: 0;
}

.box:hover img{
  transform: scale(120%);
}

.box, .box .info, .box img, .box .mask{
  transition: all 0.4s;
}