很好看的css3 Loading

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css3 loading</title>
    <style type="text/css">
    *{
        margin: 0px;
        padding: 0px;
        border:0px;
    }
    html,body{
        min-height: 100%;
    }
    body{
        background: radial-gradient(#eee,#444);
    }
    .loader{
        position: absolute;
        top:0;
        bottom: 0;
        left: 0;
        right: 0;
        margin:auto;
        width:175px;
        height: 100px;
    }
    .loader span{
        display: block;
        background: #ccc;
        width:7px;
        height: 10%;
        border-radius: 14px;
        margin-right: 5px;
        float: left;
        margin-top: 25%;
    }
    .loader span:last-child{
        margin-right: 0;
    }
    .loader span:nth-child(1){
        animation: load 2.5s 1.4s infinite linear;
    }
    .loader span:nth-child(2){
        animation: load 2.5s 1.2s infinite linear;
    }
    .loader span:nth-child(3){
        animation: load 2.5s 1s infinite linear;
    }
    .loader span:nth-child(4){
        animation: load 2.5s 0.8s infinite linear;
    }
    .loader span:nth-child(5){
        animation: load 2.5s 0.6s infinite linear;
    }
    .loader span:nth-child(6){
        animation: load 2.5s 0.4s infinite linear;
    }
    .loader span:nth-child(7){
        animation: load 2.5s 0.2s infinite linear;
    }
    .loader span:nth-child(8){
        animation: load 2.5s 0s infinite linear;
    }
    .loader span:nth-child(9){
        animation: load 2.5s 0.2s infinite linear;
    }
    .loader span:nth-child(10){
        animation: load 2.5s 0.4s infinite linear;
    }
    .loader span:nth-child(11){
        animation: load 2.5s 0.6s infinite linear;
    }
    .loader span:nth-child(12){
        animation: load 2.5s 0.8s infinite linear;
    }
    .loader span:nth-child(13){
        animation: load 2.5s 1s infinite linear;
    }
    .loader span:nth-child(14){
        animation: load 2.5s 1.2s infinite linear;
    }
    .loader span:nth-child(15){
        animation: load 2.5s 1.4s infinite linear;
    }
    @keyframes load{
        0%{
            background: #ccc;
            margin-top: 25%;
            height: 10%;
        }
        50%{
            background: #444;
            height: 100%;
            margin-top: 0%;
        }
        100%{
            background: #ccc;
            height: 10%;
            margin-top: 25%;
        }
    }
    </style>
</head>
<body>
<div class="loader">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值