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