<template>
    <div class="LoaderContainer">
        <div class="LoaderOverlay">
            <div class="Loader"> WILLA ENGINE </div>
        </div>
    </div>
</template>
<script>
export default {

}
</script>
<style lang="scss" scoped>
    .LoaderContainer {
        position: fixed;
        width: 100%;
        height: 100%;
    }
    .LoaderOverlay {
        position: relative;
        width: 100%;
        height: 100%;
        background: inherit;
        overflow: hidden;

    }
    .LoaderContainer:after {
        content: '';
        width: 100%;
        height: 100%;
        background: inherit;
        position: absolute;
        left: -25px;
        right: 0;
        top: -25px;
        bottom: 0;
        box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.05);
        filter: blur(20px);
    }

    .Loader {
        color: #fff;
        display:flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin: auto;
        background-color: transparent;
        animation: load 2.2s infinite 0s ease-in-out;
        animation-direction: alternate;
        font-size: 40px;
    }
    .Loader div {
        /* animation: BlurFade 4s linear infinite alternate; */
        animation: load 2.2s infinite 0s ease-in-out;
        animation-direction: alternate;
        margin-right: 15px;
        font-size: 40px;
    }

    @-webkit-keyframes BlurFade {
        0% {
            opacity: 0;
            filter: blur(40px);
            -webkit-filter: blur(40px);
                transform: translateY(50px) rotateY(90deg) scale(3);
            -webkit-transform: translateY(50px) rotateY(90deg) scale(3);
        }
        25% {
            opacity: 1;
            filter: blur(0px);
            -webkit-filter: blur(0px);
            transform: translateY(0px) rotateY(0deg) scale(1.2);
            -webkit-transform: translateY(0px) rotateY(0deg) scale(1.2);

        }
        50% {
            opacity: 1;
            filter: blur(0px);
            -webkit-filter: blur(0px);
            transform: translateY(0px) rotateY(0deg) scale(1.2);
            -webkit-transform: translateY(0px) scale(1.2);

        }
        75% {
            opacity: 1;
            filter: blur(0px);
            -webkit-filter: blur(0px);
            transform: translateY(0px) rotateY(0deg) scale(1.2);
            -webkit-transform: translateY(0px) rotateY(0deg) scale(1.2);

        }
        100% {
            opacity: 0;
            filter: blur(40px);
            -webkit-filter: blur(40px);
                transform: translateY(50px) rotateY(90deg) scale(3);
            -webkit-transform: translateY(50px) rotateY(90deg) scale(3);

        }
    }
    @keyframes load {
        0% {
            opacity: 0.08;
            font-size: 20px;
            font-weight: 400;
            filter: blur(5px);
            letter-spacing: 15px;
        }
        100% {
            opacity: 1;
            font-size: 20px;
            font-weight:600;
            filter: blur(0);
            letter-spacing: 5px;
        }
    }
</style>
