div.animateRibbons {
    display: none;
    z-index: 0;
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100vw;
}

div.animateFadeOut {
    animation: fadeOut 1000ms;
    -webkit-animation: fadeOut 1000ms;
    -moz-animation: fadeOut 1000ms;
    -o-animation: fadeOut 1000ms;
    -ms-animation: fadeOut 1000ms;
}

div.animateBlock {
    position: absolute;
    display: block;
    animation: animate 45s linear infinite;
    opacity: 0.25;
    visibility:hidden;
}
div.animateBlock > div {
    width: 100%;
    height: 100%;
    background: rgba(120,120,120,0.4);
    transform-style: preserve-3d;
 }

 div.animateBlock:nth-child(1) div { transition: transform 0.6s; animation: animateInner 25s linear infinite; }
 div.animateBlock:nth-child(2) div { transition: transform 0.7s; animation: animateInner 24s linear infinite; }
 div.animateBlock:nth-child(3) div { transition: transform 0.5s; animation: animateInner 23s linear infinite; }
 div.animateBlock:nth-child(4) div { transition: transform 0.4s; animation: animateInner 22s linear infinite; }
 div.animateBlock:nth-child(5) div { transition: transform 0.6s; animation: animateInner 21s linear infinite; }
 div.animateBlock:nth-child(6) div { transition: transform 0.8s; animation: animateInner 20s linear infinite; }
 div.animateBlock:nth-child(7) div { transition: transform 0.9s; animation: animateInner 25s linear infinite; }
 div.animateBlock:nth-child(8) div { transition: transform 0.3s; animation: animateInner 24s linear infinite; }
 div.animateBlock:nth-child(9) div { transition: transform 0.4s; animation: animateInner 23s linear infinite; }
 div.animateBlock:nth-child(10) div { transition: transform 0.5s; animation: animateInner 22s linear infinite; }
 div.animateBlock:nth-child(11) div { transition: transform 0.9s; animation: animateInner 21s linear infinite; }
 div.animateBlock:nth-child(12) div { transition: transform 0.8s; animation: animateInner 20s linear infinite; }
 div.animateBlock:nth-child(13) div { transition: transform 0.7s; animation: animateInner 25s linear infinite; }
 div.animateBlock:nth-child(14) div { transition: transform 0.6s; animation: animateInner 24s linear infinite; }
 div.animateBlock:nth-child(15) div { transition: transform 0.5s; animation: animateInner 23s linear infinite; }
 div.animateBlock:nth-child(16) div { transition: transform 0.6s; animation: animateInner 22s linear infinite; }
 div.animateBlock:nth-child(17) div { transition: transform 0.4s; animation: animateInner 21s linear infinite; }
 div.animateBlock:nth-child(18) div { transition: transform 0.7s; animation: animateInner 20s linear infinite; }
 
div.animateBlock:nth-child(1) {
    left: 25%;
    width: 20px;
    height: 20px;
    bottom: 0;
    animation-delay: 0s;
}
div.animateBlock:nth-child(2) {
    left: 75%;
    width: 40px;
    height: 40px;
    bottom: 0;
    animation-delay: 2.5s;
}
div.animateBlock:nth-child(3) {
    left: 50%;
    width: 30px;
    height: 30px;
    bottom: 0;
    animation-delay: 5s;
}
div.animateBlock:nth-child(4) {
    left: 40%;
    width: 50px;
    height: 50px;
    bottom: 0;
    animation-delay: 7.5s;
}
div.animateBlock:nth-child(5) {
    left: 60%;
    width: 30px;
    height: 30px;
    bottom: 0;
    animation-delay: 10s;
}
div.animateBlock:nth-child(6) {
    left: 45%;
    width: 35px;
    height: 35px;
    bottom: 0;
    animation-delay: 12.5s;
}

div.animateBlock:nth-child(7) {
    left: 37%;
    width: 30px;
    height: 40px;
    bottom: 0;
    animation-delay: 15s;
}
div.animateBlock:nth-child(8) {
    left: 62%;
    width: 40px;
    height: 30px;
    bottom: 0;
    animation-delay: 17.5s;
}
div.animateBlock:nth-child(9) {
    left: 48%;
    width: 30px;
    height: 30px;
    bottom: 0;
    animation-delay: 20s;
}
div.animateBlock:nth-child(10) {
    left: 68%;
    width: 30px;
    height: 40px;
    bottom: 0;
    animation-delay: 22.5s;
}
div.animateBlock:nth-child(11) {
    left: 28%;
    width: 40px;
    height: 30px;
    bottom: 0;
    animation-delay: 25s;
}
div.animateBlock:nth-child(12) {
    left: 75%;
    width: 45px;
    height: 35px;
    bottom: 0;
    animation-delay: 27.5s;
}

div.animateBlock:nth-child(13) {
    left: 18%;
    width: 40px;
    height: 40px;
    bottom: 0;
    animation-delay: 30s;
}
div.animateBlock:nth-child(14) {
    left: 85%;
    width: 20px;
    height: 30px;
    bottom: 0;
    animation-delay: 32.5s;
}
div.animateBlock:nth-child(15) {
    left: 63%;
    width: 30px;
    height: 30px;
    bottom: 0;
    animation-delay: 35s;
}
div.animateBlock:nth-child(16) {
    left: 33%;
    width: 40px;
    height: 30px;
    bottom: 0;
    animation-delay: 37.5s;
}
div.animateBlock:nth-child(17) {
    left: 70%;
    width: 30px;
    height: 40px;
    bottom: 0;
    animation-delay: 40s;
}
div.animateBlock:nth-child(18) {
    left: 40%;
    width: 35px;
    height: 45px;
    bottom: 0;
    animation-delay: 42.5s;
}

@keyframes animate {
    0% {
        opacity: 0.2;
        transform: translateY(0) rotate(0deg);
        visibility:visible;
    }
    50% {
        opacity: 0.1;
        transform: translateY(-75vh) rotate(720deg);
    }
    100% {
        opacity: 0.2;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes animateInner {
    0% {
        border-radius: 30%;
        transform: matrix3d(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1);
    }
    25% {
        border-radius: 4px;
        transform: matrix(1, 0, 0, 1, 0, 0);
    }
    50% {
        border-radius: 30%;
        transform: matrix3d(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1);
    }
    75% {
        border-radius: 4px;
        transform: matrix(1, 0, 0, 1, 0, 0);
    }
    100% {
        border-radius: 30%;
        transform: matrix3d(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1);
    }
}

@media (max-width: 500px) {

    div.animateBlock:nth-child(13) {
        display: none;
    }
    div.animateBlock:nth-child(14) {
        display: none;
    }
    div.animateBlock:nth-child(15) {
        display: none;
    }
    div.animateBlock:nth-child(16) {
        display: none;
    }
    div.animateBlock:nth-child(17) {
        display: none;
    }
    div.animateBlock:nth-child(18) {
        display: none;
    }
}