-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 在第一屏增加波浪动画 * feat: 默认隐藏波浪动画并使其适配视频模式
- Loading branch information
Showing
10 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
|
||
@import "video-box"; | ||
|
||
@import "wave.css"; | ||
|
||
@import "top-down.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.home-wave { | ||
z-index: 1; | ||
position: relative; | ||
width: 400%; | ||
transition: 0.4s ease all; | ||
|
||
& > div { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
} | ||
|
||
& .wave-1 { | ||
height: 65px; | ||
left: -236px; | ||
animation: wave 100s linear 0s infinite; | ||
} | ||
|
||
& .wave-2 { | ||
height: 80px; | ||
left: 0px; | ||
animation: wave 240s linear 0s infinite; | ||
} | ||
} | ||
|
||
@keyframes wave { | ||
0% { | ||
transform: translateX(0%); | ||
} | ||
100% { | ||
transform: translateX(-50.5%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<th:block | ||
th:if="${theme.config.mainScreen.focus_height}" | ||
> | ||
<div class="home-wave"> | ||
<div class="wave-1" th:style="|background: url(${#theme.assets('/images/wave/wave1.png')}) repeat-x|"></div> | ||
<div class="wave-2" th:style="|background: url(${#theme.assets('/images/wave/wave2.png')}) repeat-x|"></div> | ||
</div> | ||
</th:block> |