码迷,mamicode.com
首页 > 其他好文 > 详细

图片hover上去选装

时间:2015-12-18 18:55:23      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.media-object {
width: 150px;
height: 150px;
overflow: hidden;
border-radius: 75px;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
.media-object:hover {
-webkit-transform:rotate(360deg) skew(-10deg) scale(1.0) translate(100px,0);
-moz-transform:rotate(360deg) skew(-10deg) scale(1.0) translate(100px,0);
transform:rotate(360deg) skew(-10deg) scale(1.0) translate(100px,0);
}
.rotate-icon {
display: inline-block;
vertical-align: middle;
width: 150px;
height: 150px;
background-size: 150px 150px;
background-image: url("../images/animal/rotate.jpg");
background-repeat: no-repeat;
}

</style>
</head>
<body>
<div>
<span class="media-object rotate-icon"></span>
</div>
</body>
</html>

图片hover上去选装

标签:

原文地址:http://www.cnblogs.com/floraCnblogs/p/pic-hover-rotate.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!