.demo-container {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    height: 100%;
    -webkit-box-align: center;
    align-items: center;
}

.demo-container .demo-panel {
    -webkit-box-flex: 1;
    flex-grow: 1;
    height: 100%;
    /* border: 1px solid white; */
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
}

.spinner {
    position: relative;
    top: -70px;
    width: 100px;
    /* height: 100px; */
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transform: rotate(30deg) scale(0.5, 1);
    transform: rotate(30deg) scale(0.5, 1);
}

.bar-outer {
    -webkit-transform-origin: 5px 5px;
    transform-origin: 5px 5px;
    width: 100px;
    position: absolute;
    top: 0;
    left: 0;
}

.bar-outer.right {
    width: 94px;
}

.bar-outer.right .bar {
    background: #6628F6;
}

.bar-outer.down-right {
    /*transform-origin: 10px 10px;*/
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
}

.bar-outer.down-right .bar {
    background: #2D4DF6;
}

.bar-outer.up-right {
    /* transform-origin: 10px 10px; */
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
}

.bar-outer.up-right .bar {
    background: #B01BF6;
}

.bar-outer.up-left {
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
}

.bar-outer.up-left .bar {
    background: #6628F6;
    -webkit-animation-name: ribbon-left;
    animation-name: ribbon-left;
}

.bar-outer.down-left {
    /* transform-origin: 5px 5px; */
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
}

.bar-outer.down-left .bar {
    background: #D580FD;
    -webkit-animation-name: ribbon-left;
    animation-name: ribbon-left;
}

.bar-outer .bar {
    width: 100px;
    height: 10px;
    border-radius: 5px;
    background: gray;
    position: absolute;
    top: 0;
    opacity: 0;
    /* @keyframes name | duration | timing-function | delay |
   iteration-count | direction | fill-mode | play-state */
    -webkit-animation: ribbon 1.2s linear 0s infinite;
    animation: ribbon 1.2s linear 0s infinite;
}

.top.b1 {
    top: 0px;
}

.top.b1 .bar {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.b2 {
    top: 31px;
}

.b2 .bar {
    -webkit-animation-delay: 0.15s;
    animation-delay: 0.15s;
}

.b3 {
    top: 31px;
}

.b3 .bar {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.b4 {
    top: 93px;
}

.b4 .bar {
    -webkit-animation-delay: 0.45s;
    animation-delay: 0.45s;
}

.bottom.b5 {
    top: 93px;
}

.bottom.b5 .bar {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.b6 {
    top: 62px;
}

.b6 .bar {
    -webkit-animation-delay: 0.75s;
    animation-delay: 0.75s;
}

.b7 {
    top: 62px;
}

.b7 .bar {
    background: red;
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

.b8 {
    top: 0px;
}

.b8 .bar {
    -webkit-animation-delay: 1.05s;
    animation-delay: 1.05s;
}

@-webkit-keyframes ribbon {
    from {
        opacity: 1;
        left: 0%;
        right: auto;
        width: 0px;
    }
    11% {
        width: 100%;
        left: 0;
    }
    12% {
        width: 100%;
        /* left: 100%; */
        left: auto;
        right: 0;
        /* opacity: 1; */
    }
    35% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* right: 0; */
        /* opacity: 1; */
    }
    46% {
        left: auto;
        right: 0;
        width: 0;
        opacity: 0;
    }
    to {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
        opacity: 0;
    }
}

@keyframes ribbon {
    from {
        opacity: 1;
        left: 0%;
        right: auto;
        width: 0px;
    }
    11% {
        width: 100%;
        left: 0;
    }
    12% {
        width: 100%;
        /* left: 100%; */
        left: auto;
        right: 0;
        /* opacity: 1; */
    }
    35% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* right: 0; */
        /* opacity: 1; */
    }
    46% {
        left: auto;
        right: 0;
        width: 0;
        opacity: 0;
    }
    to {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
        opacity: 0;
    }
}

@-webkit-keyframes ribbon-left {
    from {
        opacity: 1;
        right: 0;
        width: 0px;
    }
    11% {
        width: 100%;
        right: 0;
    }
    12% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* opacity: 1; */
    }
    35% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* opacity: 1; */
    }
    46% {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
    }
    to {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
        opacity: 1;
    }
}

@keyframes ribbon-left {
    from {
        opacity: 1;
        right: 0;
        width: 0px;
    }
    11% {
        width: 100%;
        right: 0;
    }
    12% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* opacity: 1; */
    }
    35% {
        width: 100%;
        /* left: 100%; */
        /* left: auto; */
        /* right: 0; */
        /* opacity: 1; */
    }
    46% {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
    }
    to {
        left: 0;
        right: auto;
        width: 0;
        /* opacity:0; */
        opacity: 1;
    }
}
