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/less/effects/icons/_icon-float-away.less
2021-08-31 11:30:22 -04:00

32 lines
537 B
Text

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