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