创新路
我们一直在努力

CSS3 3D transform变换简单实例

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS3 3D transform变换</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.circle_pic{
width:80px;
height:80px;
}
.circle_pic img {
width:100%;
height:100%;
border-radius: 50%;
transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
transition:1s ease;
-moz-transition:1s ease;
-ms-transition:1s ease;
-o-transition:1s ease;
-webkit-transition:1s ease;
}
.circle_pic:hover img {
transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
}
</style>
</head>
<body>
    <div class="circle_pic">
    <img src="images/show.jpg" />
    </div>
</body>
</html>

未经允许不得转载:天府数据港官方信息博客 » CSS3 3D transform变换简单实例

客官点个赞呗! (0)
分享到:

评论 抢沙发

评论前必须登录!

天府云博 - 做有态度的开发&运维&设计学习分享平台!

联系我们百度云主机