css3簡單旋轉
阿新 • • 發佈:2018-09-30
src transform left ans style htm ges form clas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style type="text/css">
.img{
width:1200px;
height:300px;
border:1px solid red;
margin:auto;
}
li{
list-style:none;
float:left;
margin-left:15px;
-webkit-transform-style:preserve-3d;-webkit-transition:1.5s;
-moz-transform-style:preserve-3d;-moz-transition:1.5s;
}
li:hover{
-webkit-transform:rotateY(180deg);
-moz-transform:rotateY(180deg);
}
</style>
<body>
<ul class="img">
<li><img src="images/img1.jpg"></li>
<li><img src="images/img2.jpg"></li>
<li><img src="images/img3.jpg"></li>
<li><img src="images/img4.jpg"></li>
</ul>
</body>
</html>
css3簡單旋轉