1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/scss/effects/icons/_icon-drop.scss
2021-08-31 11:30:22 -04:00

42 lines
828 B
SCSS

/* Icon Drop */
@include keyframes(#{$nameSpace}-icon-drop) {
0% {
opacity: 0;
}
50% {
opacity: 0;
@include prefixed(transform, translateY(-100%));
}
51%,
100% {
opacity: 1;
}
}
/* Icon Drop */
@mixin icon-drop {
@include hacks();
.hvr-icon {
@include prefixed(transform, translateZ(0));
}
&:hover,
&:focus,
&:active {
.hvr-icon {
opacity: 0;
@include prefixed(transition-duration, #{$mediumDuration});
@include prefixed(animation-name, #{$nameSpace}-icon-drop);
@include prefixed(animation-duration, #{$slowDuration});
@include prefixed(animation-delay, #{$mediumDuration});
@include prefixed(animation-fill-mode, forwards);
@include prefixed(animation-timing-function, ease-in-out);
@include prefixed(animation-timing-function, cubic-bezier(.52,1.64,.37,.66));
}
}
}