180度 图片旋转

 

 

 

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
perspective: 500px;
}

img {
display: block;
margin: 100px auto;
transition: all 1s;
}

img:hover {
transform: rotateY(180deg);
}
</style>
</head>

<body>
<img src="media/pig.jpg" alt="">
</body>

</html>

posted @ 2020-08-13 00:02  13522679763-任国强  阅读(243)  评论(0)    收藏  举报