<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box{
width: 400px;
margin: auto;
}
a{
display: block;
position: absolute;
backface-visibility: hidden;
transition: all 1s linear;
}
.box .img2{
transform: rotateY(180deg);
}
img{
width: 400px;
height: 250px;
}
.box:hover .img1{
transform: rotateY(180deg);
}
.box:hover .img2{
transform: rotateY(0);
}
</style>
</head>
<body>
<div class="box">
<a href="" class="img1"><img src="../imgs/1.jpg" alt="" ></a>
<a href="" class="img2"><img src="../imgs/2.jpg" alt="" ></a>
</div>
</body>
</html>
09-06
1259
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交