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;
            }
            .box2{
                 50px;
                height: 50px;
                border-radius: 50%;
                background-color: chartreuse;
                animation:boll 3s forwards ease-in infinite;
            }
            @keyframes boll {
                from{
                    margin-top: 0px;
                }
                33%{
                    margin-top: 250px;
                }
                66%{
                    margin-top: 100px;
                    animation-timing-function: ease-out;
                }
                to{
                    animation-timing-function: ease-in;
                    margin-top: 250px;
                }
            }
        </style>
    </head>
    <body>
        <div class="outer">
            <div class="box2"></div>
        </div>
    </body>
    </html>
  • 相关阅读:
    联邦企业架构之CIO委员会的企业架构实施指南(下)
    Environment Detection环境检测工具设计与实现
    A Grain of Sand
    Java回顾之集合
    代码与工具(C++)
    搭建后台框架
    深入.NET程序集加载
    Express作为Node.js的开发框架
    使用NuGet发布自己的类库包(Library Package)
    新浪设计规范
  • 原文地址:https://www.cnblogs.com/kukai/p/12321502.html
Copyright © 2011-2022 走看看