本篇文章主要介绍了css3实现头像旋转效果,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
鼠标未放上效果:

鼠标放上之后旋转效果:

transition: all 2.0s;表示所有的属性变换在2秒内完成;
transform: rotate(360deg);表示图片旋转360度。
html>
<meta>
<title></title>
<style>
img{
border: #000 solid 2px;
display: block;
margin: 50px auto;
border-radius: 50%;
transition: all 2.0s;
}
img:hover{
transform: rotate(360deg);
}
</style>
@@##@@
前端入门到VUE实战笔记:立即使用
在学习笔记中,你将探索 前端 的入门与实战技巧!











