PageLoading.scss
807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* components/PageLoading/PageLoading.wxss */
.nothing {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1/1;
flex-direction: column;
font-size: 28rpx;
color: rgb(40, 40, 41);
}
.nothing.true{
position: fixed;
top: 50%;
width: 100%;
transform: translateY(-50%);
}
.loading {
height: 48rpx;
margin-bottom: 16rpx;
}
.loading view {
width: 16rpx;
height: 100%;
display: inline-block;
animation: stretchdelay 1.2s infinite ease-in-out;
margin: 0 4rpx;
}
.loading view:nth-child(2) {
animation-delay: -1.1s;
}
.loading view:nth-child(3) {
animation-delay: -1s;
}
.loading view:nth-child(4) {
animation-delay: -.9s;
}
@keyframes stretchdelay {
0%,
100%,
40% {
transform: scaley(.33);
}
20% {
transform: scaley(1);
}
}