add raindrop background
This commit is contained in:
@ -1,14 +1,4 @@
|
||||
/* components/background/snow/index.wxss */
|
||||
@keyframes fall {
|
||||
from {
|
||||
transform: translateY(-10px) rotate(0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateY(100vh) rotate(1800deg);
|
||||
}
|
||||
}
|
||||
|
||||
page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -22,12 +12,22 @@ page {
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
|
||||
@keyframes snowflakeFall {
|
||||
from {
|
||||
transform: translateY(-10px) rotate(0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateY(100vh) rotate(1800deg);
|
||||
}
|
||||
}
|
||||
|
||||
.snowflake {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
animation: fall linear infinite;
|
||||
animation: snowflakeFall linear infinite;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
|
||||
Reference in New Issue
Block a user