mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
43 lines
1 KiB
SCSS
43 lines
1 KiB
SCSS
|
/* Icon Bob */
|
||
|
@include keyframes(#{$nameSpace}-icon-bob) {
|
||
|
0% {
|
||
|
@include prefixed(transform, translateY(-6px));
|
||
|
}
|
||
|
50% {
|
||
|
@include prefixed(transform, translateY(-2px));
|
||
|
}
|
||
|
100% {
|
||
|
@include prefixed(transform, translateY(-6px));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@include keyframes(#{$nameSpace}-icon-bob-float) {
|
||
|
100% {
|
||
|
@include prefixed(transform, translateY(-6px));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@mixin icon-bob {
|
||
|
@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-bob-float, #{$nameSpace}-icon-bob");
|
||
|
@include prefixed(animation-duration, ".3s, 1.5s");
|
||
|
@include prefixed(animation-delay, "0s, .3s");
|
||
|
@include prefixed(animation-timing-function, "ease-out, ease-in-out");
|
||
|
@include prefixed(animation-iteration-count, "1, infinite");
|
||
|
@include prefixed(animation-fill-mode, "forwards");
|
||
|
@include prefixed(animation-direction, "normal, alternate");
|
||
|
}
|
||
|
}
|
||
|
}
|