/************** DEFINITION of ANIMATIONS **************/

// 'bounce' effect
@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes flash {
    from, 50%, to {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }
}

// pulse effect
@keyframes pulse {
    from { box-shadow: 0 0 0 0 var(--pulse-color-from, #{$primary}); }
    to { box-shadow: 0 0 0 var(--pulse-spread-radius, 2em) var(--pulse-color-to, #{rgba(#FFF, 0)}); }
}
