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

31 lines
657 B
SCSS

/* Icon Buzz */
@include keyframes(#{$nameSpace}-icon-buzz) {
50% {
@include prefixed(transform, translateX(3px) rotate(2deg));
}
100% {
@include prefixed(transform, translateX(-3px) rotate(-2deg));
}
}
@mixin icon-buzz {
@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);
@include prefixed(animation-duration, .15s);
@include prefixed(animation-timing-function, linear);
@include prefixed(animation-iteration-count, infinite);
}
}
}