mirror of https://github.com/IanLunn/Hover.git
34 lines
711 B
SCSS
34 lines
711 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();
|
|
position: relative;
|
|
padding-right: 0;
|
|
@include prefixed(transition-duration, $mediumDuration);
|
|
|
|
.fa, .hover-icon {
|
|
@include prefixed(transform, translateZ(0));
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
|
|
.fa, .hover-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);
|
|
}
|
|
}
|
|
}
|