码迷,mamicode.com
首页 > Web开发 > 详细

拒绝IE8-,CSS3 transform rotate旋转动画效果(支持IE9+/chrome/firefox)

时间:2015-12-25 22:26:10      阅读:2596      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://www.jb51.net/" />
<title>拒绝IE8-,CSS3 transform rotate旋转动画效果(支持IE9+/chrome/firefox)</title>
<style type="text/css">
.feature-box-image {
  margin: 0 auto 1em auto;
  width: 120px;
  height: 107px;
  overflow: hidden;
}
.cross-browser .feature-box-image{
    background: url(http://www.iicoo.cn/demo/html5/feature-sprites.png) -278px 0px no-repeat;
    transition: all 0.4s;
    position: relative;
    z-index: 10;
}
.cross-browser .feature-box-image:hover {
    transition: all 0.7s;
    -webkit-transform: rotate(6.28rad);
    -ms-transform: rotate(6.28rad);
    transform: rotate(6.28rad);
}
</style>
<script type="text/javascript">
 //
</script>
</head>
<body>
    <div class="feature-box cross-browser">
            <div class="feature-box-image"></div>
        </div>
</body>
</html>

 

拒绝IE8-,CSS3 transform rotate旋转动画效果(支持IE9+/chrome/firefox)

标签:

原文地址:http://www.cnblogs.com/iicoo/p/5077008.html

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