绿满眶商城微信小程序-uniapp
zxl
2025-06-26 3bff34c3aa7ad412042272ea6a37b7d5b49b8d9b
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<template>
  <view class="animations">
    <view class="box">
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
      <view class="item"></view>
    </view>
  </view>
</template>
 
<script>
export default {
  name: "loading-love",
  data() {
    return {};
  },
};
</script>
 
<style lang="scss" scoped>
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  height: 160rpx;
}
 
.item {
  background: linear-gradient(to bottom, #f00000, #e73827);
  width: 16rpx;
  height: 16rpx;
  border-radius: 20rpx;
  margin-right: 10rpx;
}
 
.item:nth-child(1) {
  animation: love1 4s infinite;
}
 
.item:nth-child(2) {
  animation: love2 4s infinite;
  animation-delay: 0.15s;
}
 
.item:nth-child(3) {
  animation: love3 4s infinite;
  animation-delay: 0.3s;
}
 
.item:nth-child(4) {
  animation: love4 4s infinite;
  animation-delay: 0.45s;
}
 
.item:nth-child(5) {
  animation: love5 4s infinite;
  animation-delay: 0.6s;
}
 
.item:nth-child(6) {
  animation: love4 4s infinite;
  animation-delay: 0.75s;
}
 
.item:nth-child(7) {
  animation: love3 4s infinite;
  animation-delay: 0.9s;
}
 
.item:nth-child(8) {
  animation: love2 4s infinite;
  animation-delay: 1.05s;
}
 
.item:nth-child(9) {
  animation: love1 4s infinite;
  animation-delay: 1.2s;
}
 
@keyframes love1 {
  30%,
  50% {
    height: 50rpx;
    transform: translateY(-20rpx);
  }
 
  75%,
  100% {
    height: 20rpx;
    transform: translateY(0);
  }
}
 
@keyframes love2 {
  30%,
  50% {
    height: 90rpx;
    transform: translateY(-25rpx);
  }
 
  75%,
  100% {
    height: 20rpx;
    transform: translateY(0);
  }
}
 
@keyframes love3 {
  30%,
  50% {
    height: 120rpx;
    transform: translateY(-20rpx);
  }
 
  75%,
  100% {
    height: 20rpx;
    transform: translateY(0);
  }
}
 
@keyframes love4 {
  30%,
  50% {
    height: 130rpx;
    transform: translateY(-10rpx);
  }
 
  75%,
  100% {
    height: 20rpx;
    transform: translateY(0);
  }
}
 
@keyframes love5 {
  30%,
  50% {
    height: 130rpx;
    transform: translateY(10rpx);
  }
 
  75%,
  100% {
    height: 20rpx;
    transform: translateY(0);
  }
}
 
// .item:nth-child(1) {
//     height: 50rpx;
//     transform: translateY(-20rpx);
// }
 
// .item:nth-child(2) {
//     height: 90rpx;
//     transform: translateY(-25rpx);
// }
 
// .item:nth-child(3) {
//     height: 120rpx;
//     transform: translateY(-20rpx);
// }
 
// .item:nth-child(4) {
//     height: 130rpx;
//     transform: translateY(-10rpx);
// }
 
// .item:nth-child(5) {
//     height: 130rpx;
//     transform: translateY(10rpx);
// }
 
// .item:nth-child(6) {
//     height: 130rpx;
//     transform: translateY(-10rpx);
// }
 
// .item:nth-child(7) {
//     height: 120rpx;
//     transform: translateY(-20rpx);
// }
 
// .item:nth-child(8) {
//     height: 90rpx;
//     transform: translateY(-25rpx);
// }
 
// .item:nth-child(9) {
//     height: 50rpx;
//     transform: translateY(-20rpx);
// }
</style>