2021-01-24 19:20:07 +08:00
|
|
|
$faa-wrench-speed: 2.5s;
|
2021-01-23 21:07:47 +08:00
|
|
|
@keyframes wrench {
|
|
|
|
0% {
|
2021-01-24 19:20:07 +08:00
|
|
|
transform: rotate(-12deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
8% {
|
2021-01-24 19:20:07 +08:00
|
|
|
transform: rotate(12deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
2021-01-24 19:20:07 +08:00
|
|
|
10%, 28%, 30%, 48%, 50%, 68% {
|
|
|
|
transform: rotate(24deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
2021-01-24 19:20:07 +08:00
|
|
|
18%, 20%, 38%, 40%, 58%, 60% {
|
|
|
|
transform: rotate(-24deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
75%,100% {
|
2021-01-24 19:20:07 +08:00
|
|
|
transform: rotate(0deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.faa-wrench.animated,
|
|
|
|
.faa-wrench.animated-hover:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-wrench {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: wrench $faa-wrench-speed ease infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
transform-origin-x: 90%;
|
|
|
|
transform-origin-y: 35%;
|
|
|
|
transform-origin-z: initial;
|
|
|
|
}
|
|
|
|
.faa-wrench.animated.faa-fast,
|
|
|
|
.faa-wrench.animated-hover.faa-fast:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-wrench.faa-fast {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: wrench ($faa-wrench-speed * $faa-speed-coeff-fast) ease infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
.faa-wrench.animated.faa-slow,
|
|
|
|
.faa-wrench.animated-hover.faa-slow:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-wrench.faa-slow {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: wrench ($faa-wrench-speed * $faa-speed-coeff-slow) ease infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|