@charset 'utf-8';

/*  ========================================================================
    JUICE -> ANIMATIONS -> FADE -> EXIT -> FADE OUT LEFT
    ========================================================================  */

// Check if the animations with fade out left should be imported
@if $import-animations and $import-animation-fade-out-left {
    .has-animation {
        // Nested selectors
        &.fade-out-left {
            @keyframes fade-out-left {
                from {
                    opacity: 1;
                    transform: translate3d(0, 0, 0);
                }

                to {
                    opacity: 0;
                    transform: translate3d((0px - $animation-fade-in-distance), 0, 0);
                }
            }
            animation-delay: $animation-fade-out-delay;
            animation-duration: $animation-fade-out-duration;
            animation-name: fade-out-left;
            animation-timing-function: $animation-fade-out-easing;
        }
    }
}
