zoukankan      html  css  js  c++  java
  • 旋转条形特效(发廊特效)

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    <style>
    *{
        margin:0;
        padding:0;
    }
        ul,li{
            list-style: none;
            margin:0;
            padding:0;
        }
        html,body,ul{
             100%;
            height: 100%;
            background: skyblue;
            position: relative;    
        }
        ul{
            display: flex;
            justify-content: flex-start;
        }
        /*控制li标签*/
    
        ul>li:nth-child(1){        
            /*background: red;*/
             300px;
            height: 40px;
            left:500px;
            top:300px;
            background: white;
            overflow: hidden;
            position: relative;
    
        }
        /*控制div*/
    
        ul>li:nth-child(1) div{        
             30px;
            height: 60px;
            background: black;
            position: absolute;
            transform: skewX(-45deg);
            left: 360px;
            /*transform-origin: center top;*/
        }
    
        /*第四部分*/
        ul>li:nth-child(1) div:nth-child(1){
            /*left:360px;*/    
            animation: move 4.8s 0s linear infinite;
        }
        ul>li:nth-child(1) div:nth-child(2){
            /*left: 120px;*/
            animation: move 4.8s 0.8s linear infinite;
        }
        ul>li:nth-child(1) div:nth-child(3){
            /*left: 180px;*/
            animation: move 4.8s 1.6s linear infinite;
        }
        ul>li:nth-child(1) div:nth-child(4){
            /*left: 240px;*/
            animation: move 4.8s 2.4s linear infinite;
        }
        ul>li:nth-child(1) div:nth-child(5){
            /*left: 300px;*/
            animation: move 4.8s 3.2s linear infinite;
        }
        ul>li:nth-child(1) div:nth-child(6){
            /*left: 360px;*/
            animation: move 4.8s 4.0s linear infinite;
        }
        @keyframes move{
            from{}to{
                left: -100px;
            }
        }
    </style>
    <body>
        <ul>
            <li>
                <div></div>
                <div></div>
                <div></div>
                <div></div>    
                <div></div>
                <div></div>    
    
            </li>
        </ul>
    </body>
    </html>
    
  • 相关阅读:
    classpath:和classpath*:的区别
    Java 类装载器工作机制
    Spring 注解配置 WebApplicationContext
    IDEA Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/)
    Mybatis #和$区别
    重排链表
    判断环形链表并给出入环口的节点位置
    环行链表
    复制带随机指针的链表
    有序链表转换二叉搜索树
  • 原文地址:https://www.cnblogs.com/ysshuai/p/6706485.html
Copyright © 2011-2022 走看看