@charset 'utf-8';

/*  ========================================================================
    JUICE -> ANIMATIONS -> ATTRACTORS -> SHAKE
    ========================================================================  */

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

                10%, 30%, 50%, 70%, 90% {
                    transform: translate3d(5px, 0, 0);
                }

                20%, 40%, 60%, 80% {
                    transform: translate3d(-5px, 0, 0);
                }
            }

            animation-delay: $animation-attractor-shake-delay;
            animation-duration: $animation-attractor-shake-duration;
            animation-name: shake;
            animation-timing-function: $animation-attractor-shake-easing;
        }
    }
}
