本篇文章小编给大家分享一下css实现鼠标放上去时图片过渡转换动画效果代码示例,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。
代码如下:
.test{ margin-top: 200px; margin-left: 300px; overflow: hidden; background-color: red; } .test div{ width: 100%; height: 100%; transition: 500ms; } .test div:last-child{ background-color: green; } .test:hover div{ transform: translateY(-100%); }