2021-01-24 19:20:07 +08:00
|
|
|
$faa-spin-speed: 1.5s;
|
|
|
|
@keyframes spin {
|
2021-01-23 21:07:47 +08:00
|
|
|
0% {
|
2021-01-24 19:20:07 +08:00
|
|
|
transform: rotate(0deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
100% {
|
2021-01-24 19:20:07 +08:00
|
|
|
transform: rotate(359deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes spin-reverse {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(-359deg);
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.faa-spin.animated,
|
|
|
|
.faa-spin.animated-hover:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: spin $faa-spin-speed linear infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
.faa-spin.animated.faa-fast,
|
|
|
|
.faa-spin.animated-hover.faa-fast:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin.faa-fast {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: spin ($faa-spin-speed * $faa-speed-coeff-fast) linear infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|
|
|
|
.faa-spin.animated.faa-slow,
|
|
|
|
.faa-spin.animated-hover.faa-slow:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin.faa-slow {
|
2021-01-24 19:20:07 +08:00
|
|
|
animation: spin ($faa-spin-speed * $faa-speed-coeff-slow) linear infinite;
|
|
|
|
}
|
|
|
|
.faa-spin.faa-reverse.animated,
|
|
|
|
.faa-spin.faa-reverse.animated-hover:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin.faa-reverse {
|
|
|
|
animation: spin-reverse $faa-spin-speed linear infinite;
|
|
|
|
}
|
|
|
|
.faa-spin.faa-reverse.animated.faa-fast,
|
|
|
|
.faa-spin.faa-reverse.animated-hover.faa-fast:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin.faa-reverse.faa-fast {
|
|
|
|
animation: spin-reverse ($faa-spin-speed * $faa-speed-coeff-fast) linear infinite;
|
|
|
|
}
|
|
|
|
.faa-spin.faa-reverse.animated.faa-slow,
|
|
|
|
.faa-spin.faa-reverse.animated-hover.faa-slow:hover,
|
|
|
|
.faa-parent.animated-hover:hover > .faa-spin.faa-reverse.faa-slow {
|
|
|
|
animation: spin-reverse ($faa-spin-speed * $faa-speed-coeff-slow) linear infinite;
|
2021-01-23 21:07:47 +08:00
|
|
|
}
|