首页 > 代码库 > css3实现头像旋转360度

css3实现头像旋转360度

css样式:

.div a img{
width: 88px;
height: 88px;
border-radius: 88px;
transition: all 1.2s ease-out 0s;
}
.div a img:hover{
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);
-ms-transform:rotate(360deg);
transform:rotate(360deg);
}

html:

<div class="div">
<a href="http://www.mamicode.com/#"><img src="http://www.mamicode.com/images/logo.jpg"></a>
</div>