3D旋转
程序员文章站
2022-07-13 08:28:32
...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=img, initial-scale=1.0">
<title>Document</title>
<style>
body {
perspective: 500px;
}
img {
display: block;
margin: 100px auto;
transition: all 1s;
}
img:hover {
transform: rotate3d(1, 1, 0, 45deg);
}
</style>
</head>
<body>
<img src="../media/pig.jpg" alt="">
</body>
</html>
上一篇: AR/MR 技术
下一篇: Qt Quick 3D模块初探