cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
               <header class="color2">
   <h1>Full CSS3 Page Loader Animation - <a href="https://github.com/VincentLoy/css-load-animation" target="_blank">Check on Github</a></h1>
    </header>
    <!-- loader 1 -->
    <div class="color1 box">
        <h3>Loader 1</h3>
        <hr>
        <span class="loader loader-quart-1"></span>
        Loading...
    </div>
    
    <!-- loader 2 -->
    <div class="color2 box">
        <h3>Loader 2</h3>
        <hr>
        <span class="loader loader-quart-2"></span>
        Loading...
    </div>
    
    <!-- loader 3 -->
    <div class="color1 box">
        <h3>Loader 3</h3>
        <hr>
        <span class="loader loader-quart-3"></span>
       Loading...
    </div>
    
    <!-- loader 4 -->
    <div class="color2 box">
        <h3>Loader 4</h3>
        <hr>
        <span class="loader loader-quart-4"></span>
        Loading...
    </div>
    
    <!-- loader 5 -->
    <div class="color1 box">
        <h3>Loader 5</h3>
        <hr>
        <span class="loader loader-quart-5"></span>
        Loading...
    </div>
    
    <!-- loader 6 -->
    <div class="color2 box">
        <h3>Loader 6</h3>
        <hr>
        <span class="loader loader-quart-6"></span>
        Loading...
    </div>
    
    <!-- loader 7 -->
    <div class="color1 box">
        <h3>Loader 7</h3>
        <hr>
        <span class="loader loader-quart-7"></span>
        Loading...
    </div>
    
    <!-- loader 8 -->
    <div class="color2 box">
        <h3>Loader 8</h3>
        <hr>
        <span class="loader loader-quart-8"></span>
        Loading...
    </div>
    
    <!-- loader 9 -->
    <div class="color1 box">
        <h3>Loader 9</h3>
        <hr>
        <span class="loader loader-quart-9"></span>
        Loading...
    </div>
    
    <!-- loader 10 -->
    <div class="color2 box">
        <h3>Loader 10</h3>
        <hr>
        <span class="loader loader-cube-1"></span>
        Loading...
    </div>
            
          
!
            
              /* layout */
body, html{
    margin: 0; padding: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 40px;
    text-align: center;
    color: #fff;
}
h1 {
    margin: 0;
    font-size: 40px;
}
h3{
    margin: 0;
    font-size: 15px;
    line-height: 0;
}

hr{
    border-top: 1px solid #fff;
    border-bottom: 0;
    margin-bottom: 0;
}

header{
    background-color: #16a085;
    height: 150px;
    line-height: 150px;
}


.color1{
    background-color: #2980b9;
}

.color2{
    background-color: #3498db;
}

.box{
    width: 100%;
    height: 250px;
    padding-top: 25px;
    line-height: 250px;
    -webkit-box-shadow: 0px 21px 46px #000000;
    box-shadow: 0px 21px 46px #000000;
}

.box:last-child{
    -webkit-box-shadow: 0 0 0 #000;
    box-shadow: 0 0 0 #000;
}

/* loaders styles */
.loader{
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

/* -------------------------------------------------------- */
/* LOADERS */
/* -------------------------------------------------------- */
/* Loader 1 */

.loader-quart-1{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.5);
}

.loader-quart-1:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

@-webkit-keyframes rotation{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    100%{ -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes rotation{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    100%{ -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
}

/* -------------------------------------------------------- */
/* Loader 2 */

.loader-quart-2{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.5);
}

.loader-quart-2:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation2 1.5s linear infinite;
    animation: rotation2 1.5s linear infinite;
}

@-webkit-keyframes rotation2{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    50%{ -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
     100%{-webkit-transform: rotate(0deg);-ms-transform: rotate(0deg);transform: rotate(0deg); }
    
}

@keyframes rotation2{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    50%{ -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
     100%{-webkit-transform: rotate(0deg);-ms-transform: rotate(0deg);transform: rotate(0deg); }
}

/* -------------------------------------------------------- */
/* Loader 3 */

.loader-quart-3{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.5);
    
    -webkit-animation: background-change 1s linear infinite;
    animation: background-change 1s linear infinite;
}

.loader-quart-3:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-radius: 50px;
    
    /* /!\ this is animation of the 1st loader (@keyframes rotation) /!\ */
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

@-webkit-keyframes background-change{
    0%{ background-color: rgba(255,255,255,0.1); }
    50%{ background-color: rgba(255,255,255,0.4); }
    100%{ background-color: rgba(255,255,255,0.1); }
}

@keyframes background-change{
    0%{ background-color: rgba(255,255,255,0.1); }
    50%{ background-color: rgba(255,255,255,0.4); }
    100%{ background-color: rgba(255,255,255,0.1); }
}

/* -------------------------------------------------------- */
/* Loader 4 */

.loader-quart-4{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,1);
}

.loader-quart-4:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
     border: 5px solid rgba(255,255,255,1);
    border-radius: 25px;
    
    /* /!\ this is animation of the 1st loader (@keyframes rotation) /!\ */
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

/* -------------------------------------------------------- */
/* Loader 5 */

.loader-quart-5{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.8);
    
    -webkit-animation: background-change2 1s linear infinite;
    animation: background-change2 1s linear infinite;
}

@-webkit-keyframes background-change2{
    0%{background-color: rgba(255,255,255,0.1); }
    50%{background-color: rgba(255,255,255,0.6); }
    100%{background-color: rgba(255,255,255,0.1); }
}

@keyframes background-change2{
    0%{background-color: #1abc9c; }
    50%{background-color: #8e44ad; }
    100%{background-color: #1abc9c; }
}

/* -------------------------------------------------------- */
/* Loader 6 */

.loader-quart-6{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.5);
}

.loader-quart-6:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation3 1.5s linear infinite;
    animation: rotation3 1.5s linear infinite;
}

@-webkit-keyframes rotation3{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    33% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
    100%{ -webkit-transform: rotate(720deg); -ms-transform: rotate(720deg); transform: rotate(720deg); }
}

@keyframes rotation3{
    0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    10% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
    50% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
    100%{ -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
}

/* -------------------------------------------------------- */
/* Loader 7 */

.loader-quart-7{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.25);
}

.loader-quart-7:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-bottom-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation3 2s linear infinite;
    animation: rotation3 2s linear infinite;
}

/* -------------------------------------------------------- */
/* Loader 8 */

.loader-quart-8{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.25);
}

.loader-quart-8:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-bottom-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

/* -------------------------------------------------------- */
/* Loader 9 */

.loader-quart-9{
    border-radius: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    
    -webkit-animation: border-opacity 0.5s linear infinite;
    
    animation: border-opacity 0.5s linear infinite;
}

.loader-quart-9:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 5px solid transparent;
    border-top-color: #fff;
    border-bottom-color: #fff;
    border-radius: 50px;
    
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

@-webkit-keyframes border-opacity{
    0%{ border-color: rgba(255,255,255,0.1); }
    50%{ border-color: rgba(255,255,255,0.9);}
    100%{ border-color: rgba(255,255,255,0.1);}
}

@keyframes border-opacity{
    0%{ border-color: rgba(255,255,255,0.1); }
    50%{ border-color: rgba(255,255,255,0.9);}
    100%{ border-color: rgba(255,255,255,0.1);}
}

/* -------------------------------------------------------- */
/* Loader 10 */

.loader-cube-1{
    border: 5px solid rgba(255,255,255,1);
    border-radius:50px;
    overflow: hidden;
    
    -webkit-animation: rotation 0.5s linear infinite;
    animation: rotation 0.5s linear infinite;
    
}

.loader-cube-1:after{
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    height: 25px;
    width: 25px;
    background-color: #FFF;
    border-radius: 50px;
    border: 2.5px solid rgba(255,255,255,0.8);
    
    -webkit-animation: animated-bar 1s linear infinite;
    
    animation: animated-bar 1s linear infinite;
}



@-webkit-keyframes animated-bar{
    0%{ top:5px; }
    25%{ top: 25px; }
    50%{ top: 50px; }
    100%{ top: 5px; }
}



@keyframes animated-bar{
    0%{ top:5px; }
    25%{ top: 25px; }
    50%{ top: 50px; }
    100%{ top: 5px; }
}
/* ******* */
            
          
!
999px
Loading ..................

Console