/*目标css类*/
.item{
transition: all .2s linear;
}
/*移入效果*/
.item:hover{
cursor: pointer;
z-index: 2;
-webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
-webkit-transform: translate3d(0, -2px, 0);
transform: translate3d(0, -2px, 0)
}
【前端】小米首页商品动画效果
于 2021-12-06 14:49:15 首次发布