码迷,mamicode.com
首页 > 其他好文 > 详细

旋转条形特效(发廊特效)

时间:2017-04-13 22:29:03      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:center   meta   image   transform   pad   charset   gif   mat   com   

技术分享

 

<!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{
        width: 100%;
        height: 100%;
        background: skyblue;
        position: relative;    
    }
    ul{
        display: flex;
        justify-content: flex-start;
    }
    /*控制li标签*/

    ul>li:nth-child(1){        
        /*background: red;*/
        width: 300px;
        height: 40px;
        left:500px;
        top:300px;
        background: white;
        overflow: hidden;
        position: relative;

    }
    /*控制div*/

    ul>li:nth-child(1) div{        
        width: 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>

 

旋转条形特效(发廊特效)

标签:center   meta   image   transform   pad   charset   gif   mat   com   

原文地址:http://www.cnblogs.com/ysshuai/p/6706485.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!