<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.rotateX {
width: 300px;
height: 226px;
margin: 200px auto;
perspective: 500px;
}
img {
transition: transform 2s;
}
.rotateX:hover img {
transform: rotateX(360deg);
}
</style>
</head>
<body>
<div class="rotateX">
<img src="./DemoMaterial/3D/x.jpg" alt="">
</div>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.rotateY {
width: 236px;
height: 300px;
margin: 100px auto;
perspective: 150px;
}
img {
transition: all 2s;
}
.rotateY:hover img {
transform: rotateY(360deg);
}
</style>
</head>
<body>
<div class="rotateY">
<img src="./DemoMaterial/3D/y.jpg" alt="">
</div>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.rotateZ {
width: 330px;
height: 227px;
margin: 100px auto;
perspective: 150px;
}
img {
transition: all 2s;
}
.rotateZ:hover img {
transform: rotateZ(360deg);
}
</style>
</head>
<body>
<div class="rotateZ">
<img src="./DemoMaterial/3D/z.jpg" alt="">
</div>
</body>
</html>
