.modeCard{ transition: all 0.5s; } .modeCard:hover{ //鼠标悬停时激活 opacity: 0.2; //透明度 transition: 1s; //动画过渡的更加顺滑 transform: scale(1.1); //放大倍数 }