2020-04-24 22:49:10 +08:00
|
|
|
transition() {
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2020-11-27 15:32:40 +08:00
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
the-transition() {
|
|
|
|
transition-duration: 0.2s;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
transition-delay: 0s;
|
|
|
|
}
|
|
|
|
|
2020-11-27 15:32:40 +08:00
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
the-transition-ease-in() {
|
|
|
|
transition-duration: 0.2s;
|
|
|
|
transition-timing-function: ease-in;
|
|
|
|
transition-delay: 0s;
|
|
|
|
}
|
|
|
|
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
the-transition-ease-out() {
|
2020-09-05 22:41:10 +08:00
|
|
|
transition-delay: 0s;
|
2020-04-07 11:57:53 +08:00
|
|
|
transition-duration: 0.2s;
|
|
|
|
transition-timing-function: ease-out;
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
.fade-in-down-animation {
|
|
|
|
animation-fill-mode: both;
|
2020-03-21 23:04:01 +08:00
|
|
|
animation-duration: 1s;
|
2020-04-28 23:20:17 +08:00
|
|
|
animation-name: fade-in-down;
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-11-27 15:32:40 +08:00
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
@keyframes fade-in-down {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
2020-04-29 16:08:43 +08:00
|
|
|
transform: translateY(-20px);
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-11-27 15:32:40 +08:00
|
|
|
@keyframes icon-animate {
|
|
|
|
0%, 100% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
10%, 30% {
|
|
|
|
transform: scale(.88);
|
|
|
|
}
|
|
|
|
|
|
|
|
20%, 40%, 60%, 80% {
|
|
|
|
transform: scale(1.08);
|
|
|
|
}
|
|
|
|
|
|
|
|
50%, 70% {
|
|
|
|
transform: scale(1.08);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
.title-hover-animation {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
color: var(--second-text-color);
|
|
|
|
border-bottom: none;
|
|
|
|
line-height: 1.3;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 2px;
|
|
|
|
bottom: -4px;
|
|
|
|
left: 0;
|
|
|
|
background-color: var(--second-text-color);
|
|
|
|
visibility: hidden;
|
|
|
|
transform: scaleX(0);
|
|
|
|
the-transition();
|
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-04-07 11:57:53 +08:00
|
|
|
&:hover::before {
|
|
|
|
visibility: visible;
|
|
|
|
transform: scaleX(1);
|
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
2020-11-27 15:32:40 +08:00
|
|
|
|
|
|
|
|