* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}


body {
    background-color: #333;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

body:before {
    content: "Cargando...";
    border-bottom: 1px solid #aaa;
    color: #aaa;
    font: bold 40px Arial;
}

body:after {
    content: "Gracias por visitar la pagina web";
    color: #aaa;
    font: 12px Arial;
}


span {
    width: 100px;
    height: 5px;
    display: block;
    background-color: #ed1b4c;  
    position: absolute;
    opacity: .5;
    top: -50px;
    -webkit-animation: loading 3s ease-in-out infinite;
    -moz-animation: loading 3s ease-in-out infinite;
    -o-animation: loading 3s ease-in-out infinite;
    animation: loading 3s ease-in-out infinite ;
}

span:nth-of-type(2) {
    left: 100px;
    background-color: #f6db68;
    -webkit-animation-delay: .1s;
    -moz-animation-delay: .1s;
    -o-animation-delay: .1s;
    animation-delay: .1s;    
}

span:nth-of-type(3) {
    left: 200px;
    background-color: #a91f6a;
    -webkit-animation-delay: .2s;
    -moz-animation-delay: .2s;
    -o-animation-delay: .2s;
    animation-delay: .2s;    
}

span:nth-of-type(4) {
    left: 300px;
    background-color: #2e9699;
    -webkit-animation-delay: .3s;
    -moz-animation-delay: .3s;
    -o-animation-delay: .3s;
    animation-delay: .3s;    
}

span:nth-of-type(5) {
    left: 400px;
    background-color: #f46844;
    -webkit-animation-delay: .4s;
    -moz-animation-delay: .4s;
    -o-animation-delay: .4s;
    animation-delay: .4s;    
}

span:nth-of-type(6) {
    left: 500px;
    background-color: #ed1b4c;
    -webkit-animation-delay:.5s;
    -moz-animation-delay:.5s;
    -o-animation-delay:.5s;
    animation-delay: .5s;    
}

span:nth-of-type(7) {
    left: 600px;
    background-color: #f6db68;
    -webkit-animation-delay: .6s;
    -moz-animation-delay: .6s;
    -o-animation-delay: .6s;
    animation-delay: .6s;    
}

span:nth-of-type(8) {
    left: 700px;
    background-color: #a91f6a;
    -webkit-animation-delay: .7s;
    -moz-animation-delay: .7s;
    -o-animation-delay: .7s;
    animation-delay: .7s;    
}

span:nth-of-type(9) {
    left: 800px;
    background-color: #2e9699;
    -webkit-animation-delay: .8s;
    -moz-animation-delay: .8s;
    -o-animation-delay: .8s;
    animation-delay: .8s;    
}

span:nth-of-type(10) {
    left: 900px;
    background-color: #f46844;
    -webkit-animation-delay: .9s;
    -moz-animation-delay: .9s;
    -o-animation-delay: .9s;
    animation-delay: .9s;    
}

span:nth-of-type(11) {
    left: 1000px;
    background-color: #ed1b4c;
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -o-animation-delay: 1s;
    animation-delay: 1s;    
}

span:nth-of-type(12) {
    left: 1100px;
    background-color: #f6db68;
    -webkit-animation-delay: 1.1s;
    -moz-animation-delay: 1.1s;
    -o-animation-delay: 1.1s;
    animation-delay: 1.1s;    
}

span:nth-of-type(13) {
    left: 1200px;
    background-color: #a91f6a;
    -webkit-animation-delay: 1.2s;
    -moz-animation-delay: 1.2s;
    -o-animation-delay: 1.2s;
    animation-delay: 1.2s;    
}

span:nth-of-type(14) {
    left: 1300px;
    background-color: #2e9699;
    -webkit-animation-delay: 1.3s;
    -moz-animation-delay: 1.3s;
    -o-animation-delay: 1.3s;
    animation-delay: 1.3s;    
}

span:nth-of-type(15) {
    left: 1400px;
    background-color: #f6db68;
    -webkit-animation-delay: 1.4s;
    -moz-animation-delay: 1.4s;
    -o-animation-delay: 1.4s;
    animation-delay: 1.4s;    
}

span:last-of-type {
    left: 1500px;
    background-color: #ed1b4c;
    -webkit-animation-delay: 15s;
    -moz-animation-delay: 15s;
    -o-animation-delay: 15s;
    animation-delay: 1.5s;    
}


@-webkit-keyframes loading {
    0%, 40%, 60%, 80%, 100% {
        height: 5px;
    }
    
    20%  {
        height: 775px;
    }    
}