DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS特效代碼 >> CSS3鼠標懸停360度旋轉效果
CSS3鼠標懸停360度旋轉效果
編輯:CSS特效代碼     
鼠標移動到圖片上:


源代碼如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>CSS3鼠標懸停360度旋轉效果</title>
<style>
* {
margin:0;
padding:0;
list-style:none;
}
body {
background:#1F1F1F;
}
.xzhovertree {
width: 220px;
height: 220px;
margin: 0 auto;
background: no-repeat url("http://hovertree.com/hvtimg/201511/60mj4wsb_l.gif") 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;
}
.xzhovertree: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="xzhovertree"></div>
<div style="text-align:center;clear:both;">
</div>
</body>
</html>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved