zoukankan      html  css  js  c++  java
  • Animation同时改变多个属性的动画

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Animation同时改变多个属性的变化</title>
        <style>
            div {
            150px;
            height:150px;
            background:#4cff00;
            border:3px solid #000000;
            position:absolute;
            left:200px;
            top:300px;
            }
            /*定义一个关键帧*/
            @-webkit-keyframes 'xiaolei' {
                    0%
                {
                    -webkit-transform:rotate(0deg) scale(1);
                    background-color:#4cff00;
                }
                    40% {
                    -webkit-transform:rotate(720deg) scale(1.5);
                    background-color:#f00;
                    }
            70% {
             -webkit-transform:rotate(1080deg) scale(2.5);
                    background-color:#ffd800;
            }
                100% {
                    -webkit-transform:rotate(0deg) scale(1);
                    background-color:#4cff00;
                }
            }
            div:hover {
            -webkit-animation-name:'xiaolei';
            -webkit-animation-duration:8s;
            -webkit-animation-interation-count:1;
            }
        </style>
    </head>
    <body>
        <div>鼠标悬停,开始动画</div>
    </body>
    </html>

  • 相关阅读:
    LCA + 二分(倍增)
    Educational Codeforces Round 5
    BNU 51276
    POJ 1511
    hdu2121
    最小树形图(朱刘算法)
    Educational Codeforces Round 1(D. Igor In the Museum) (BFS+离线访问)
    Educational Codeforces Round 1(C. Nearest vectors)
    POJ-2785 4 Values whose Sum is 0(折半枚举 sort + 二分)
    POJ 1661Help Jimmy(逆向DP Or 记忆化搜索 Or 最短路径)
  • 原文地址:https://www.cnblogs.com/xiaoleidiv/p/3163813.html
Copyright © 2011-2022 走看看