zoukankan      html  css  js  c++  java
  • animation循环滚动

    css3 简单循环滚动

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            @keyframes lbody {
                0% {
                    transform: translate3d(0, 0, 0);
                }
                100% {
                    transform: translate3d(0, -520px, 0);       //滚动内容div高度和
                }
            }
            .box{
                 800px;
                border: 1px solid #000000;
                position: absolute;
                height: 500px;
                overflow: hidden;
            }
            .box .lbody{
                animation: 15s lbody linear infinite normal;
                position: absolute;
            }
        </style>
    </head>
    <body>
        <div class="box">
            <div class="lbody">
                <div><img  width="800" height="100" style="background-color: #0002ff"></div>
                <div><img  width="800" height="100" style="background-color: #00fff7"></div>
                <div><img  width="800" height="100" style="background-color: #4bff00"></div>
                <div><img  width="800" height="100" style="background-color: #ffe500"></div>
                <div><img  width="800" height="100" style="background-color: #ff0900"></div>
    
                <div><img  width="800" height="100" style="background-color: #0002ff"></div>
                <div><img  width="800" height="100" style="background-color: #00fff7"></div>
                <div><img  width="800" height="100" style="background-color: #4bff00"></div>
                <div><img  width="800" height="100" style="background-color: #ffe500"></div>
                <div><img  width="800" height="100" style="background-color: #ff0900"></div>
            </div>
        </div>
    </body>
    </html>
    

      

  • 相关阅读:
    深入探索迭代器(续)
    深入探索迭代器
    C++ 容器的综合应用的一个简单实例——文本查询程序
    multimap 和 multiset 类型
    set 类型
    map 类型
    关联容器
    Ajax请求成功, 但进不去success方法
    springboot指定配置文件启动项目
    新测可用IntelliJ IDEA 2020.1 for mac
  • 原文地址:https://www.cnblogs.com/liangjj/p/7124184.html
Copyright © 2011-2022 走看看