首页 > Web开发 > 详细

CSS动画控制器

时间:2015-04-24 20:57:53      阅读:275      评论:0      收藏:0      [点我收藏+]
<html>
<head>
    <title>animation</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: #00b3ee;
        }
        /*动画过程控制器*/
        @-webkit-keyframes firstDiv{
            10%{
                background-color: #a94442;
                width: 200px;
                height: 200px;
            }
            30%{
                background-color: #398439;
                width: 200px;
                height: 200px;
            }
            50%{
                background-color: #afd9ee;
                width: 300px;
                height: 300px;
            }
            80%{
                background-color: #ffff00;
                width: 370px;
                height: 370px;
                transform:rotate(30deg);
            }
            100%{
                background-color: #ffff00;
                width: 500px;
                height: 500px;
                transform:rotate(60deg);
            }
        }
        div:hover{
            -webkit-animation-name: firstDiv;
            -webkit-animation-duration: 5s;
            -webkit-animation-timing-function:linear;
            -webkit-animation-iteration-count:infinite;
        }
    </style>
</head>
<body>
<div>动画div</div>
</body>
</html>

  

CSS动画控制器

原文:http://www.cnblogs.com/zzq-include/p/4454296.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!