Skip to content

Commit

Permalink
optimize: homepage header transition
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Dec 29, 2023
1 parent c22a708 commit 0b830c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- 新增:播放页,CC字幕字体
- 新增:播放页,CC字幕描边
- 修复:日志输出顺序
- 优化:首页header渐变
- 优化:页面直角化
- 优化:选项顺序
- 优化:URL净化
Expand Down
6 changes: 3 additions & 3 deletions src/pages/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (location.href.startsWith('https://www.bilibili.com/') && ['/index.html', '/'
}
/* header滚动后渐变出现, 否则闪动 */
#i_cecream .bili-header__bar.slide-down {
transition: background-color 0.3s ease-out !important;
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out !important;
}
#i_cecream .bili-header__bar:not(.slide-down) {
transition: background-color 0.3s ease-out !important;
Expand Down Expand Up @@ -204,10 +204,10 @@ if (location.href.startsWith('https://www.bilibili.com/') && ['/index.html', '/'
`#i_cecream .header-channel {display: none !important;}
/* 吸附分区栏的动效转移给吸附header, 滚动后渐变出现 */
#i_cecream .bili-header__bar.slide-down {
transition: background-color 0.3s ease-out !important;
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out !important;
}
#i_cecream .bili-header__bar:not(.slide-down) {
transition: background-color 0.3s ease-out !important;
transition: background-color 0.3s ease-out;
}`,
),
)
Expand Down

0 comments on commit 0b830c7

Please sign in to comment.