zoukankan      html  css  js  c++  java
  • CSS3动画

    CSS3动画

     
     
     
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>CSS3动画</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <style>
    #myfirst {
    0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid red;
    position: relative;
    animation: myfirst 2s linear infinite normal;
    -moz-animation: myfirst 2s linear infinite normal; /* Firefox: */
    -webkit-animation: myfirst 2s linear infinite normal; /* Safari and Chrome: */
    -o-animation: myfirst 2s linear infinite normal; /* Opera: */
    }

    @keyframes myfirst {
    0% { transform: rotatez(0deg)}
    50% { transform: rotatez(180deg)}
    100% { transform: rotatez(360deg)}
    }

    @-moz-keyframes myfirst /* Firefox */
    {
    0% { -moz-transform: rotatez(0deg)}
    50% { -moz-transform: rotatez(180deg)}
    100% { -moz-transform: rotatez(360deg)}
    }

    @-webkit-keyframes myfirst /* Safari and Chrome */
    {
    0% { -webkit-transform: rotatez(0deg)}
    50% { -webkit-transform: rotatez(180deg)}
    100% { -webkit-transform: rotatez(360deg)}
    }

    @-o-keyframes myfirst /* Opera */
    {
    0% { -o-transform: rotatez(0deg)}
    50% { -o-transform: rotatez(180deg)}
    100% { -o-transform: rotatez(360deg) }
    }
    </style>
    </head>
    <body>
    <div id="myfirst"></div>
    </body>
    </html>
  • 相关阅读:
    NGUI的HUD Text的扩展插件学习--(HUDText)的使用
    C#设计模式:外观模式(Facade Pattern)
    NGUI的HUD Text的扩展插件学习--(UIFollowTarget)的使用
    NGUI的怎么在一个Gameobject(游戏物体)中调用另一个Gameobject(游戏物体)的脚本(C#)
    C#设计模式:组合模式(Composite Pattern)
    C#Contains方法的错误理解
    C#.NET动态页面静态化生成
    C++ primer plus读书笔记——第1章 预备知识
    如何判断一个数是2的幂
    C++将数值转换为string
  • 原文地址:https://www.cnblogs.com/webQdesign/p/5733189.html
Copyright © 2011-2022 走看看