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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console