css3鼠标悬停背景做360°旋转效果源码下载
<html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>css3鼠标悬停背景做360°旋转效果</title> <style> * { margin:0; padding:0; list-style:none; } body { background:#1F1F1F; } .lanrenzhijia { width: 220px; height: 220px; margin: 0 auto; background: no-repeat url("http://www.taobye.com/attachFiles/image/20160329/20160329144032_620.jpg") left top; -webkit-background-size: 220px 220px; -moz-background-size: 220px 220px; background-size: 220px 220px; -webkit-border-radius: 110px; border-radius: 110px; -webkit-transition: -webkit-transform 2s ease-out; -moz-transition: -moz-transform 2s ease-out; -o-transition: -o-transform 2s ease-out; -ms-transition: -ms-transform 2s ease-out; } .lanrenzhijia:hover { -webkit-transform: rotateZ(360deg); -moz-transform: rotateZ(360deg); -o-transform: rotateZ(360deg); -ms-transform: rotateZ(360deg); transform: rotateZ(360deg); } </style> </head> <body> <div class="lanrenzhijia"></div> </body> </html>
正在加载评论...