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

63 lines
1.2 KiB
SCSS

/* Icon Buzz Out */
@include keyframes(#{$nameSpace}-icon-buzz-out) {
10% {
@include prefixed(transform, translateX(3px) rotate(2deg));
}
20% {
@include prefixed(transform, translateX(-3px) rotate(-2deg));
}
30% {
@include prefixed(transform, translateX(3px) rotate(2deg));
}
40% {
@include prefixed(transform, translateX(-3px) rotate(-2deg));
}
50% {
@include prefixed(transform, translateX(2px) rotate(1deg));
}
60% {
@include prefixed(transform, translateX(-2px) rotate(-1deg));
}
70% {
@include prefixed(transform, translateX(2px) rotate(1deg));
}
80% {
@include prefixed(transform, translateX(-2px) rotate(-1deg));
}
90% {
@include prefixed(transform, translateX(1px) rotate(0));
}
100% {
@include prefixed(transform, translateX(-1px) rotate(0));
}
}
@mixin icon-buzz-out {
@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-buzz-out);
@include prefixed(animation-duration, .75s);
@include prefixed(animation-timing-function, linear);
@include prefixed(animation-iteration-count, 1);
}
}
}