鼠标移入给图片添加向左移动的动画

在样式里加个transform动画,展示效果为鼠标移到图片上,图片向左移动10px,鼠标移出,图片还原到原来位置

.select img {
     230px;
    height: 100px;
    transition: all 300ms ease;
}
.select img:hover {
    transform: translate(-10px, 0px);
}
原文地址:https://www.cnblogs.com/6531792-j/p/10688596.html