feat: 调整首页顶部功能

This commit is contained in:
duanshuwen
2025-11-04 21:13:19 +08:00
parent e81b7e662a
commit fad25e951c
6 changed files with 74 additions and 23 deletions

View File

@@ -1,16 +1,29 @@
.nav-bar {
display: flex;
align-items: center;
height: 44px;
padding: 0 15px;
// 图片从0%到100%动画
.image-animated {
animation: logo-scale 0.3s ease-in-out;
}
.nav-item {
width: 24px;
height: 24px;
margin-right: 10px;
@keyframes logo-scale {
0% {
transform: scale(0);
}
.nav-item-icon {
width: 100%;
height: 100%;
100% {
transform: scale(1);
}
}
// 文字从0%到100%动画,从左到右
.text-animated {
animation: text-fade-in 0.3s ease-in-out;
}
@keyframes text-fade-in {
0% {
opacity: 0;
transform: translateX(-20px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}