绿满眶商城微信小程序-uniapp
peng
2025-06-27 3f7acbae32700d7c3c2f883968ea33d436df5219
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
<template>
  <view class="animations">
    <view class="box">
      <view class="sun"></view>
      <view class="orbit orbit1">
        <view class="planetX planet1"></view>
      </view>
      <view class="orbit orbit2">
        <view class="planetX planet2"></view>
      </view>
      <view class="orbit orbit3">
        <view class="planetX planet3"></view>
      </view>
    </view>
  </view>
</template>
 
<script>
export default {
  name: "loading-sun",
  data() {
    return {};
  },
};
</script>
 
<style lang="scss" scoped>
.box {
  width: 210rpx;
  height: 210rpx;
  position: relative;
}
.sun {
  background: radial-gradient(#ff0, #f90);
  height: 50rpx;
  width: 50rpx;
  border-radius: 50%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
 
.planetX {
  position: absolute;
  z-index: 100;
  border-radius: 50%;
}
 
.planet1 {
  left: 20rpx;
  height: 13rpx;
  width: 13rpx;
  background-color: #fed313;
}
 
.planet2 {
  left: 23rpx;
  height: 20rpx;
  width: 20rpx;
  background: linear-gradient(#00ff00, #09f, #09f);
  -webkit-animation: rotation 1s infinite linear;
  animation: rotation 1s infinite linear;
}
 
.planet3 {
  left: 49rpx;
  height: 17rpx;
  width: 17rpx;
  background: radial-gradient(#ff9900, #ff4400);
}
 
.orbit {
  background: transparent;
  border-radius: 50%;
  border: 1rpx solid #cccccc;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
 
.orbit1 {
  height: 100rpx;
  width: 100rpx;
  -webkit-animation: rotation 2s infinite linear;
  -moz-animation: rotation 2s infinite linear;
  animation: rotation 2s infinite linear;
}
 
.orbit2 {
  height: 150rpx;
  width: 150rpx;
  -webkit-animation: rotation 3s infinite linear;
  -moz-animation: rotation 3s infinite linear;
  animation: rotation 3s infinite linear;
}
 
.orbit3 {
  height: 200rpx;
  width: 200rpx;
  -moz-animation: rotation 6s infinite linear;
  -webkit-animation: rotation 6s infinite linear;
  animation: rotation 6s infinite linear;
}
 
@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
 
  to {
    -webkit-transform: rotate(359deg);
  }
}
 
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
 
  to {
    transform: rotate(359deg);
  }
}
 
@-moz-keyframes rotation {
  from {
    -moz-transform: rotate(0deg);
  }
 
  to {
    -moz-transform: rotate(359deg);
  }
}
</style>