<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
ul{
margin-left:600px;
margin-top: 400px;
position: relative;
}
li{
list-style-type: none;
position: absolute;
left: 0;
top: 0;
transform-origin: left top;
transition: all 1s;
}
img{
width: 200px;
height: 280px;
}
ul:hover li:first-child{
transform: rotate(60deg);
}
ul:hover li:nth-child(2){
transform: rotate(120deg);
}
ul:hover li:nth-child(3){
transform: rotate(180deg);
}
ul:hover li:nth-child(4){
transform: rotate(240deg);
}
ul:hover li:nth-child(5){
transform: rotate(300deg);
}
ul:hover li:nth-child(6){
transform: rotate(360deg);
}
</style>
</head>
<body>
<ul>
<li><img src="img/index6.png" alt="" /></li>
<li><img src="img/index7.png" alt="" /></li>
<li><img src="img/index8.png" alt="" /></li>
<li><img src="img/index6.png" alt="" /></li>
<li><img src="img/index7.png" alt="" /></li>
<li><img src="img/index8.png" alt="" /></li>
</ul>
</body>
</html>
鼠标移动到手机上面,手机围绕一点自动旋转出其他手机
最新推荐文章于 2024-08-18 22:48:32 发布