<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>鼠标hover 图片以Y轴为中心翻转360度</title>
<style>
.aimg { width: 90px;}
.aimg img {width: 100%;transition: 0.6s;}
.amain:hover .aimg img {
transform: rotatey(360deg);
-webkit-transform: rotatey(360deg);
-o-transform: rotatey(360deg);
-moz-transform: rotatey(360deg);
-ms-transform: rotatey(360deg);
}
</style>
</head>
<body>
<div class="amain">
<div class="aimg">
<img src="./img/scxt4.png">
</div>
</div>
</body>
</html>
鼠标hover后,图片以Y轴为中心翻转360度 css样式分享
最新推荐文章于 2023-09-05 00:15:00 发布