zoukankan      html  css  js  c++  java
  • 彩色动态球

    <!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>
            .outer{
                height: 300px;
                border-bottom: 10px solid black;
                margin: 0 auto;
                overflow: hidden;
            }
            .outer div{
                 50px;
                height: 50px;
                border-radius: 50%;
                animation:boll .5s forwards ease-in infinite alternate;
                float:left;
            }
            .outer .box2{
                background-color: red;
            }
            .outer .box3{
                background-color: orange;
                /* 设置延时 */
                animation-delay: 0.1s;
            }
            .outer .box4{
                background-color: yellow;
                animation-delay: 0.2s;
            }
            .outer .box5{
                background-color:green;
                animation-delay: 0.3s;
            }.outer .box6{
                background-color:blue;
                animation-delay: 0.4s;
            }
            .outer .box7{
                background-color: indigo;
                animation-delay: 0.5s;
            }
            @keyframes boll {
                from{
                    margin-top: 0px;
                }
                to{
                    animation-timing-function: ease-in;
                    margin-top: 250px;
                }
            }
        </style>
    </head>
    <body>
        <div class="outer">
            <div class="box2"></div>
            <div class="box3"></div>
            <div class="box4"></div>
            <div class="box5"></div>
            <div class="box6"></div>
            <div class="box7"></div>
            <div class="box8"></div>
        </div>
    </body>
    </html>
  • 相关阅读:
    MuJS官网示例讲解
    Windows下用Bochs编译运行Linux-0.11(转)
    mysql数据库设置远程连接权限
    Courses in Computer Science and Engineering
    docker-ce 安装和卸载
    实现自定义docker 镜像共享
    cmakelists.txt中配置openg环境出现: undefined reference to symbol 'glLightfv'
    ubuntu16.04如何查看内存和CPU的使用情况
    ROS
    QT_OPENGL-------- 5.model
  • 原文地址:https://www.cnblogs.com/kukai/p/12321564.html
Copyright © 2011-2022 走看看