
.loader {

    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    margin: 10px;
}

.loader:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 100%;
    overflow: hidden;
    background: #e0e0e0;
    border-radius: 100%;
    border: none;
    border-bottom: dodgerblue solid 10px;
    border-top: dodgerblue solid 10px;
    border-right: #e0e0e0 solid 10px;
    border-left: #e0e0e0 solid 10px;

    -webkit-animation-name: loader;
    -moz-animation-name: loader;
    -o-animation-name: loader;
    animation-name: loader;

    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    animation-iteration-count: infinite;

    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
    animation-timing-function: linear;


    -webkit-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

    z-index: 1;
}


.loader a {
    position: absolute;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: dodgerblue;
    z-index: 2;
    width: 100%;
    height: 100%;
    line-height: 40px;
    font-size: 20%;
    border-radius: 100%;
    margin-left: 10px;
    margin-top: 10px;
    background-color: #FFF;
    box-shadow: 0 0 5px #000;
    -webkit-box-shadow: 0 0 5px #e0e0e0, inset 0 0 5px #333;
    -moz-box-shadow: 0 0 5px #e0e0e0, inset 0 0 5px #333;
    -o-box-shadow: 0 0 5px #e0e0e0, inset 0 0 5px #333;
    -ms-box-shadow: 0 0 5px #e0e0e0, inset 0 0 5px #333;
}


.loader4:before{
    border: #e0e0e0 solid 10px;

    -webkit-animation-name: none;
    -o-animation-name: none;
    animation-name: none;
}

.loader4 a{
    background-color:dodgerblue ;
    color: #FFF;
    -webkit-box-shadow: 0 0 5px #fff;
    -moz-box-shadow: 0 0 5px #fff;
    -o-box-shadow: 0 0 5px #fff;
    -ms-box-shadow: 0 0 5px #fff;
}
.loader4 a{

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -ms-box-shadow: none;
}
/*在这里面修改扩散的颜色*/
.loader4:after{
    content: "";
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    text-align: center;
    line-height: 40px;

    -webkit-animation-name: scale;
    -moz-animation-name: scale;
    -o-animation-name: scale;
    animation-name: scale;

    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    animation-iteration-count: infinite;

    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
    animation-timing-function: linear;


    -webkit-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

    position: absolute;
    width: 100%;
    height: 100%;

    border-radius: 100%;
    z-index: 1;
    background-color:rgba(255,255,255,0.7);
    box-shadow: 0 0 5px #000;
    -webkit-box-shadow: 0 0 5px #e0e0e0;
    -moz-box-shadow: 0 0 5px #e0e0e0;
    -o-box-shadow: 0 0 5px #e0e0e0;
    -ms-box-shadow: 0 0 5px #e0e0e0;
    margin-left: 10px;
    margin-top: 10px;

}



@-webkit-keyframes scale {
    from {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50%{

        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);

    }
    to {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

}

@-o-keyframes scale {
    from {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50%{

        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);

    }
    to {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

@-moz-keyframes scale {
    from {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50%{

        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);

    }
    to {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes scale {
    from {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50%{

        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);

    }
    to {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

}


.loader.duration-2s-before:before,.loader.duration-2s-after:after,.duration-2s{
    -webkit-animation-duration: 2s;
    -moz-animation-duration: 2s;
    -o-animation-duration: 2s;
    animation-duration: 2s;
}


/*********皮肤**************/
/**红色**/

/**绿色**/
.loader-orange:before {
    border-bottom-color: orange;
    border-top-color: orange;
}

.loader-orange a {
    color: orange;
}


/**绿色**/
.loader2-orange:before {
    border-bottom-color: orange;
    border-top-color: #e0e0e0;
}

.loader2-orange a {
    color: orange;
}

.loader4-orange:after,.loader4-orange a{
    background-color: orange;
}

.loader5-orange:after{
    border-color: orange;
}