﻿.container3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #ededed;
}

.loader2 {
    max-width: 15rem;
    width: 100%;
    height: auto;
    stroke-linecap: round;
}

circle {
    fill: none;
    stroke-width: 3.5;
    -webkit-animation-name: preloader;
    animation-name: preloader;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-transform-origin: 170px 170px;
    transform-origin: 170px 170px;
    will-change: transform;
}

    circle:nth-of-type(1) {
        stroke-dasharray: 550;
    }

    circle:nth-of-type(2) {
        stroke-dasharray: 500;
    }

    circle:nth-of-type(3) {
        stroke-dasharray: 450;
    }

    circle:nth-of-type(4) {
        stroke-dasharray: 300;
    }

    circle:nth-of-type(1) {
        -webkit-animation-delay: -0.15s;
        animation-delay: -0.15s;
    }

    circle:nth-of-type(2) {
        -webkit-animation-delay: -0.3s;
        animation-delay: -0.3s;
    }

    circle:nth-of-type(3) {
        -webkit-animation-delay: -0.45s;
        -moz-animation-delay: -0.45s;
        animation-delay: -0.45s;
    }

    circle:nth-of-type(4) {
        -webkit-animation-delay: -0.6s;
        -moz-animation-delay: -0.6s;
        animation-delay: -0.6s;
    }

@-webkit-keyframes preloader {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes preloader {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}



.demo {
    background: linear-gradient(to right,#ee0979,#ff6a00);
}

.loader {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

    .loader .icon {
        color: #fff;
        font-size: 72px;
        position: absolute;
        top: 25px;
        left: calc(50% - 36px);
        animation: bounceing 1s infinite;
    }

    .loader .shadow {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translateX(-50%);
        position: absolute;
        left: 50%;
        bottom: 0;
        animation: pulse 1s infinite;
    }

@keyframes pulse {
    0% {
        width: 20px;
        height: 5px;
        transform: translate(-50%);
    }

    50% {
        width: 0;
        height: 0;
        transform: translate(-50%);
    }

    100% {
        width: 20px;
        height: 5px;
        transform: translate(-50%);
    }
}

@keyframes bounceing {
    0% {
        transform: translateY(0) rotate(-360deg);
    }

    50% {
        transform: translateY(-20%) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.loader-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #66c4e9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader3 {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
   /* top: 50%; /******** <- Remove this line *********/
    border: 4px solid #Fff;
    animation: loader 2s infinite ease;
}