• css3的loadding效果


    <!DOCTYPE html>
    <html>
        <head>
            <title>CSS3 loading效果</title>
            <meta charset="utf-8" />
            <style type="text/css" media="screen">
                * {
                    margin: 0;
                    padding: 0;
                }
                #loading {
                    position: absolute;
                    left: 600px;
                    top: 147px;
                    color: #666;
                }
                #loading span{
                    display: block;
                    position: absolute;
                    top: 32px;
                    height: 10px;
                     10px;
                    border: 1px solid #999;
                    background-color: #CCC;
                    -webkit-animation-iteration-count: infinite;
                    -webkit-animation-duration: 2.5s;
                }
                #loading span:nth-of-type(1){
                    left: 0;
                    -webkit-animation-name: animationloading1;
                }
                #loading span:nth-of-type(2){
                    left: 20px;
                    -webkit-animation-name: animationloading2;
                }
                #loading span:nth-of-type(3){
                    left: 40px;
                    -webkit-animation-name: animationloading3;
                }
                #loading span:nth-of-type(4){
                    left: 60px;
                    -webkit-animation-name: animationloading4;
                }
                #loading span:nth-of-type(5){
                    left: 80px;
                    -webkit-animation-name: animationloading5;
                }
                @-webkit-keyframes animationloading1{
                    0%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    20%{
                        -webkit-transform: scale(1.5);
                        background-color: #999;
                    }
                    21%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    100%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                }
                @-webkit-keyframes animationloading2{
                    0%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    20%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    40%{
                        -webkit-transform: scale(1.5);
                        background-color: #999;
                    }
                    41%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    100%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                }
                @-webkit-keyframes animationloading3{
                    0%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    40%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    60%{
                        -webkit-transform: scale(1.5);
                        background-color: #999;
                    }
                    61%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    100%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                }
                @-webkit-keyframes animationloading4{
                    0%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    60%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    80%{
                        -webkit-transform: scale(1.5);
                        background-color: #999;
                    }
                    81%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    100%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                }
                @-webkit-keyframes animationloading5{
                    0%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    80%{
                        -webkit-transform: scale(1);
                        background-color: #CCC;
                    }
                    100%{
                        -webkit-transform: scale(1.5);
                        background-color: #999;
                    }
                }
            </style>
        </head>
        <body>
            <div id="loading">
                <h3>正在转入<a href="http://www.baidu.com">CSS3持续一组连贯动画</a> 加载中……请稍候进入百度搜索</h3>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
            </div>
        </body>
    </html>
  • 相关阅读:
    CKEditor4x word导入不保存格式的解决方案
    为了希望正式开始开发
    HTTP权威指南-URL与资源
    HTTP权威指南-HTTP概述
    同源策略和跨域访问
    普通Html文件图片上传(Storing Image To DB)
    PostgreSQL时间戳提取的特殊需求
    (转)百度前端规范、腾讯前端规范
    整理一下嵌入式WEB开发中的各种屏蔽(转)
    Excel表格指定列数据转换成文本
  • 原文地址:https://www.cnblogs.com/huntaheart/p/4026192.html
Copyright © 2020-2023  润新知