mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
55 lines
960 B
Text
55 lines
960 B
Text
/* Buzz Out */
|
|
.keyframes(~"@{nameSpace}-buzz-out", {
|
|
10% {
|
|
.prefixed(transform, translateX(3px) rotate(2deg));
|
|
}
|
|
|
|
20% {
|
|
.prefixed(transform, translateX(-3px) rotate(-2deg));
|
|
}
|
|
|
|
30% {
|
|
.prefixed(transform, translateX(3px) rotate(2deg));
|
|
}
|
|
|
|
40% {
|
|
.prefixed(transform, translateX(-3px) rotate(-2deg));
|
|
}
|
|
|
|
50% {
|
|
.prefixed(transform, translateX(2px) rotate(1deg));
|
|
}
|
|
|
|
60% {
|
|
.prefixed(transform, translateX(-2px) rotate(-1deg));
|
|
}
|
|
|
|
70% {
|
|
.prefixed(transform, translateX(2px) rotate(1deg));
|
|
}
|
|
|
|
80% {
|
|
.prefixed(transform, translateX(-2px) rotate(-1deg));
|
|
}
|
|
|
|
90% {
|
|
.prefixed(transform, translateX(1px) rotate(0));
|
|
}
|
|
|
|
100% {
|
|
.prefixed(transform, translateX(-1px) rotate(0));
|
|
}
|
|
});
|
|
|
|
.buzz-out() {
|
|
.hacks();
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
.prefixed(animation-name, ~"@{nameSpace}-buzz-out");
|
|
.prefixed(animation-duration, .75s);
|
|
.prefixed(animation-timing-function, linear);
|
|
.prefixed(animation-iteration-count, 1);
|
|
}
|
|
}
|