@charset 'utf-8';

/*  ========================================================================
    JUICE -> ANIMATIONS -> BOUNCE -> ENTRANCE -> BOUNCE IN
    ========================================================================  */

// Check if the animations with bounce in should be imported
@if $import-animations and $import-animation-bounce-in {
    .has-animation {
        // Nested selectors
        &.bounce-in {
            @keyframes bounce-in {
                from {
                    opacity: 0;
                    transform: scale3d(0.2, 0.2, 0.2);
                }

                40% {
                    opacity: 1;
                    transform: scale3d(1.03, 1.03, 1.03);
                }

                60% {
                    transform: scale3d(0.95, 0.95, 0.95);
                }

                to {
                    transform: scale3d(1, 1, 1);
                }
            }

            animation-delay: $animation-bounce-in-delay;
            animation-duration: $animation-bounce-in-duration;
            animation-name: bounce-in;
            animation-timing-function: $animation-bounce-in-easing;
        }
    }
}
