This commit is contained in:
liukang 2025-01-15 16:37:42 +08:00
parent 3b1168c0e7
commit 4aaf19c2d2
10 changed files with 61 additions and 4 deletions

View File

@ -132,7 +132,7 @@
.top-left-content { .top-left-content {
padding: 10rpx; padding: 10rpx;
font-size: 10rpx; font-size: 15rpx;
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@ -1,10 +1,13 @@
<template> <template>
<view class="content"> <view class="content">
<div class="top"> <div class="top">
<ul>
<li></li>
<li></li>
</ul>
</div> </div>
<div class="bottom"> <div class="bottom">
<Menu :type="0"/> <Menu :type="0" />
</div> </div>
</view> </view>
</template> </template>
@ -30,4 +33,58 @@
flex: 1; flex: 1;
} }
* {
margin: 0;
padding: 0;
}
ul {
height: 330rpx;
animation: change 1s linear 0s infinite alternate;
position: relative;
overflow: hidden;
top: -200rpx;
}
ul li {
list-style: none;
width: 400%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-size: 300rpx 300rpx;
}
ul li:nth-child(1) {
background-image: url('~@/static/cloud1.png');
animation: one 60s linear 0s infinite alternate;
}
ul li:nth-child(2) {
background-image: url('~@/static/cloud2.png');
animation: tow 50s linear 0s infinite alternate;
margin: 30rpx;
}
@keyframes one {
from {
margin-left: 0;
}
to {
margin-left: -100%;
}
}
@keyframes tow {
from {
margin-left: -20%;
}
to {
margin-left: -200%;
}
}
</style> </style>

BIN
static/cloud1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
static/cloud2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
static/cloud3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
static/cloud4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
static/cloud5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
static/cloud6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
static/cloud7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
static/cloud8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB