mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
48 lines
922 B
SCSS
48 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);
|
||
|
}
|
||
|
}
|
||
|
}
|