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

47 lines
922 B
SCSS

/* Icon Wobble Vertical */
@include keyframes(#{$nameSpace}-icon-wobble-vertical) {
16.65% {
@include prefixed(transform, translateY(6px));
}
33.3% {
@include prefixed(transform, translateY(-5px));
}
49.95% {
@include prefixed(transform, translateY(4px));
}
66.6% {
@include prefixed(transform, translateY(-2px));
}
83.25% {
@include prefixed(transform, translateY(1px));
}
100% {
@include prefixed(transform, translateY(0));
}
}
@mixin icon-wobble-vertical {
@include hacks();
@include prefixed(transition-duration, $mediumDuration);
.hvr-icon {
@include prefixed(transform, translateZ(0));
}
&:hover,
&:focus,
&:active {
.hvr-icon {
@include prefixed(animation-name, #{$nameSpace}-icon-wobble-vertical);
@include prefixed(animation-duration, 1s);
@include prefixed(animation-timing-function, ease-in-out);
@include prefixed(animation-iteration-count, 1);
}
}
}