代码 div class=testdiv/divdiv/div/div .test{width: 200px;height: 200px;margin-top: 200px;margin-left: 300px;overflow: hidden;background-color: red;}.test div{width: 100%;height: 100%;transition: 500ms;}.test div:last-child{background-colo

代码
<div class="test"> <div></div> <div></div> </div>
.test{
width: 200px;
height: 200px;
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%);
}
到此这篇关于css实现鼠标放上去时图片过渡转换动画效果的文章就介绍到这了,更多相关css图片过渡转换动画内容请搜索自由互联以前的文章或继续浏览下面的相关文章,希望大家以后多多支持自由互联!
