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

     

    <!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            /* 我们想页面一打开, 一个盒子就从左边走到右边 */
            /* 1定义动画 */
            
            @keyframes move {
                /* 开始状态 */
                0% {
                    transform: translateY(0px);
                }
                /* 结束状态 */
                100% {
                    transform: translateX(1000px);
                }
            }
            
            div {
                height: 200px;
                 200px;
                background-color: pink;
                /* 2 调用动画 */
                animation-name: move;
                /* 持续时间 */
                animation-duration: 3s;
            }
        </style>
    </head>

    <body>
        <div></div>
    </body>

    </html>
     
     
  • 相关阅读:
    io
    文件
    诚实
    没有犯错并不代表自己就是做得好
    脑力锻炼的随缘
    电路运算
    “容错率”
    GPU简介
    名与责任
    失眠和精神的思考
  • 原文地址:https://www.cnblogs.com/ericblog1992/p/12935211.html
Copyright © 2011-2022 走看看