• css animation fade in


    <html>
    <style>
    
    @-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
    @-o-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
    @keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
    
    .fade-in{
        animation-name: fadeIn;
        animation-timing-function: ease;
        animation-direction: normal;
        animation-play-state: running;
        -webkit-animation-name: fadeIn;
        -webkit-animation-timing-function: ease;
        -webkit-animation-direction: normal;
        -webkit-animation-play-state: running;
    }
    
    
    .icon-arrow{
        display: block;
        position: absolute;
        left: 50%;
         40px;
        height: 40px;
        margin-left: -20px;
        background: url("http://www.lewanau.com/public/weixin/css/img/icon-arrow.png") no-repeat left center;
        -webkit-animation: arrow-ani 1s linear infinite;
        -o-animation: arrow-ani 1s linear infinite;
        animation: arrow-ani 1s linear infinite;
    }
    
    @-o-keyframes arrow-ani {
        from{
            bottom:4%;
            opacity: 1;
        }
        to{
            bottom:6%;
            opacity: 0;
        }
    }
    @-webkit-keyframes arrow-ani {
        from{
            bottom:4%;
            opacity: 1;
        }
        to{
            bottom:6%;
            opacity: 0;
        }
    }
    @keyframes arrow-ani {
        from{
            bottom:4%;
            opacity: 1;
        }
        to{
            bottom:6%;
            opacity: 0;
        }
    }
    
    </style>
    
    <body style="background:#666">
    
    	<div class="animation fade-in" >
    		<span class="icon-arrow"></span>
    	</div>
    
    </body>
    
    </html>
  • 相关阅读:
    矩阵十题(7)
    线段树成段更新 poj 3468 A Simple Problem with Integers
    线段树单点更新 hdu 2795 Billboard
    线段树成段更新 poj 2528 Mayor's posters
    矩阵十题(10)
    矩阵十题(8)
    矩阵十题(5)
    矩阵十题(6)
    矩阵十题(9)
    矩阵十题(4)
  • 原文地址:https://www.cnblogs.com/tonnytong/p/6496830.html
Copyright © 2020-2023  润新知