小米官网首页商品列表鼠标悬停动画和阴影效果

li{
transition: all .2s linear;
}
li:hover {
    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)
}

  

原文地址:https://www.cnblogs.com/JeffreyZhu/p/15161038.html