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-float-away.scss
2021-08-31 11:30:22 -04:00

32 lines
602 B
SCSS

/* Icon Float Away */
@include keyframes(#{$nameSpace}-icon-float-away) {
0% {
opacity: 1;
}
100% {
opacity: 0;
@include prefixed(transform, translateY(-1em));
}
}
/* Icon Float Away */
@mixin icon-float-away {
@include hacks();
.hvr-icon {
@include prefixed(transform, translateZ(0));
@include prefixed(animation-duration, #{$slowDuration});
@include prefixed(animation-fill-mode, forwards);
}
&:hover,
&:focus,
&:active {
.hvr-icon {
@include prefixed(animation-name, #{$nameSpace}-icon-float-away);
@include prefixed(animation-timing-function, ease-out);
}
}
}