鼠标移到图片上,图片旋转720度
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>旋转</title>
<style>
*{
margin: 0;
padding: 0;
}
ul li{
list-style: none;
float: left;
height: 90px;
width: 88px;
margin: 15px;
}
#ul{
height: 300px;
width: 600px;
margin: 50px;
}
#ul li:nth-of-type(1){
background: url(../img/icon.png) no-repeat;
}
#ul li:nth-of-type(2){
background: url(../img/icon.png) -88px no-repeat;
}
#ul li:nth-of-type(3){
background: url(../img/icon.png) -176px no-repeat;
}
.li:hover{
-webkit-transform: rotateY(360deg);
transition: all 0.8s ease-in-out;
}
</style>
</head>
<body>
<section>
<aside>
<ul id="ul">
<li class="li"></li>
<li class="li"></li>
<li class="li"></li>
</ul>
</aside>
</section>
</body>
</html>