﻿.content-spinner {
    z-index: 9998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.3;
    -moz-opacity: 0.3;
    filter: alpha(opacity=30);
}

.spinner {
    z-index: 9999;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 140px;
    height: 100px;
    margin-left: -70px; /*margin-left ติดลบครึ่งหนึ่งของความกว้าง */
    margin-top: -50px; /*margin-top ติดลบครึ่งหนึ่งของความสูง */
    text-align: center;
    /*opacity: 0.7;
    -moz-opacity: 0.7;
    filter: alpha(opacity=70);*/
}

    .spinner > div {
        background-color: #eb594a;
        height: 100%;
        width: 16px;
        margin-left: 1px;
        margin-right: 1px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }

    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1.0);
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}
